<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

    <meta property="og:title" content="ZB API Reference">
    <meta property="og:description" content="ZB trader and developer documentation.">
    <meta property="og:image" content="https://www.zb.cn/img/og-exchange.jpg">

    <title>ZB | API Reference</title>

    <link href="/src/api/stylesheets/screen.css" rel="stylesheet" type="text/css" media="screen">
    <link href="/src/api/stylesheets/print.css" rel="stylesheet" type="text/css" media="print">
    <script src="/src/api/javascripts/all.js" type="text/javascript"></script>
    <style>
        body{
            font-size: 14px;
            color: #000;
        }
        .lan-switch{
            float: right;
            padding: 8px 21px;
            border-radius: 4px;
            color: #3C3232;
            background: #fff;
            text-decoration: none;
            margin-top: 10px;
            line-height: 1;
            margin-right: 40px;
        }
        .tocify-wrapper{
            background: #F3F3F5;
        }
        .tocify-wrapper .tocify-subheader{
            background: #F3F3F5!important;
        }
        .tocify-wrapper .tocify-focus a{
            color: #000;
            border-left: 4px solid #E71F19;
        }
        .section-header{
            margin-top: 0!important;
        }
        .tocify-wrapper li>a{
            color: #000;
            font-size: 14px;
            font-weight: normal;
        }
        .tocify-wrapper .tocify-item>a, .tocify-wrapper .toc-footer li{
            padding: 5px 15px 5px 15px;
        }
        .section-header{
            font-weight: bold;
        }
        .tocify-wrapper .section-header:after{
            content: none;
        }
        .tocify-wrapper .tocify-subheader .tocify-item>a{
            font-size: 14px;
            color: #000;
        }
        .tocify-wrapper ul{
            position: relative;
        }
        .tocify-wrapper ul:after{
            content: "";
            position: absolute;
            left: 15px;
            bottom: 0;
            width: 50px;
            height: 1px;
            background-color: #D9D9D9;
        }
        .content h1{
            font-size: 20px;
        }
        .content h1:first-child, .content div:first-child+h1{
            margin-top: 0!important;
        }
        .switch-tab{
            margin: 0 3%;
        }
        .switch-body{
            margin: 0 3%;
        }
        .switch-body .switch-item{
            display: none;
        }
        .switch-body .switch-item.selected{
            display: block;
        }
        .switch-tab .switch-title{
            font-size: 20px;
            font-weight: 600;
            margin: 30px 0;
        }
        .switch-tab .switch-btns .s-btn{
            color: #fff;
            padding: 10px 18px;
            background: #ABABAB;
            line-height: 1;
            border-radius: 4px;
            outline: none;
            border: 0;
            margin-bottom: 10px;
            margin-right: 10px;
        }
        .content pre, .content blockquote{
            background: #fff;
            overflow: auto;
            width: 94%;
        }
        .switch-tab .switch-btns .s-btn:last-child{
            margin-right: 0;
        }
        .switch-tab .switch-btns .s-btn.selected{
            background: #3C3232;
        }
        .page-wrapper .dark-box{
            background-color: #F3F3F5;
        }
        .row-ld{
            float: left;
            width: 50%;
            clear: none!important;
        }
        .row-rd{
            float: right;
            width: 50%;
            clear: none!important;
        }
        .row-ld>h1, .row-ld>h2, .row-ld>h3, .row-ld>h4, .row-ld>h5, .row-ld>h6, .row-ld>p, .row-ld>table, .row-ld>ul, .row-ld>ol, .row-ld>aside, .row-ld>dl {
            padding-left: 28px;
            padding-right: 28px;
            box-sizing: border-box;
            display: block;
            text-shadow: 0px 1px 0px #fff;
        }
        .row-rd pre, .row-rd blockquote{
            float: none;
            margin-left: 0;
            margin-right: 0;
            width: 100%;
        }
        @media (max-width: 740px){
            .row-ld,
            .row-rd{
                float: initial;
                width: auto;
            }
        }
        @media (max-width: 930px){
            .lan-switch{
                margin-right: 70px;
            }
        }
    </style>

    <script>
        $(function () {
            setupLanguages(['request','java']);
        });
    </script>

    <script type="text/javascript">
        $(document).ready(function () {
            $('.content').css('margin-bottom', parseInt($(window).height()) - (parseInt($('.content').height()) - parseInt($('.content h2').last().offset().top)));
        })
    </script>
    <script>
        (function (i, s, o, g, r, a, m) {
            i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
                (i[r].q = i[r].q || []).push(arguments)
            }, i[r].l = 1 * new Date(); a = s.createElement(o),
                m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
        })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
        ga('create', 'UA-32804181-6', 'auto');
        ga('send', 'pageview');
    </script>
</head>

<body class="index">

<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <a class="navbar-brand" href="https://www.zb.cn" target="_Blank">www.zb.cn</a>
            <a href="#" class="lan-switch" target="_Blank"><%=LANG('中文')%></a>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>


<a href="#" id="nav-button" target="_Blank">
    <img src="/src/api/images/navbar.png">
</a>


<div class="page-wrapper">
    <div class="menu">
        <div class="tocify-wrapper">
            <div class="lang-selector">
                <!--<a href="#" data-language-name="curl">CURL</a> -->


            </div>
            <div class="title">
            </div>
            <ul class="search-results"></ul>
            <div id="toc">
            </div>
        </div>
    </div>


    <div class="content_body">
        <div class="dark-box"></div>
        <div class="content">


            <h1 id="Restful API<%=LANG('签名规则')%>">Restful API</h1>

            <h2 id="<%=LANG('请求参数方式约定请求头参数')%>request query/request body<%=LANG('参数排序组成最终的要进行签名计算的字符串时间同步安全')%>"><%=LANG('请求参数方式约定')%></h2>

            <ul>
                <li><p>GET<%=LANG('请求')%>：<%=LANG('所有查询使用')%>GET<%=LANG('且采用')%>request query<%=LANG('方式传参即')%>key1=value1&amp;key2=value2</p></li>
                <li><p>POST<%=LANG('请求')%>：<%=LANG('除查询外其他操作均使用')%>POST<%=LANG('请求且采用')%> request body<%=LANG('方式传参')%>，POST<%=LANG('请求头')%>header<%=LANG('需要声明为')%><code>Content-Type:application/json</code> </p></li>
            </ul>

            <h2 id="<%=LANG('请求参数方式约定请求头参数')%>request query/request body<%=LANG('参数排序组成最终的要进行签名计算的字符串时间同步安全')%>"><%=LANG('请求头参数')%></h2>

            <p><%=LANG('需要设置如下请求头信息')%></p>

            <ul>
                <li><p>ZB-APIKEY: 72d41c5f-<strong><em>*-</em><em></em></strong>-<em>*</em>-08b18902fab9</p></li>
                <li><p>ZB-TIMESTAMP: <%=LANG('发起请求的时间')%>（UTC），<%=LANG('如')%>：2021-01-05T14:05:28.616Z</p></li>
                <li><p>ZB-SIGN: u4ALcTlk946vNin8pmhQsqt2Ky2DdnXKwrXrZYmnDIQ=</p></li>
                <li><p>ZB-LAN: cn</p></li>
            </ul>

            <p><%=LANG('参数说明')%>：</p>

            <ul>
                <li>ZB-APIKEY: api key</li>
                <li>ZB-TIMESTAMP: <%=LANG('请求时间')%>，<%=LANG('为')%>ISO<%=LANG('格式')%>，<%=LANG('如')%>`2021-01-05T14:05:28.616Z</li>
                <li>ZB-SIGN：<%=LANG('签名')%></li>
                <li>ZB-LAN: <%=LANG('语言')%>，<%=LANG('支持')%>cn(<%=LANG('中文')%>)、en(<%=LANG('英文')%>)<%=LANG('和')%>kr(<%=LANG('韩文')%>)，<%=LANG('默认是')%>cn</li>
            </ul>

            <h1 id="Restful API<%=LANG('签名规则')%>"><%=LANG('签名规则')%></h1>

            <p>  apiKey ：</p>

            <ul>
                <li><p><%=LANG('由')%>zb<%=LANG('平台生成用户的')%>api key</p>

                    <p><%=LANG('请求验签')%> ：</p></li>
                <li><p><%=LANG('服务器对发起的请求进行签名检验')%>，<%=LANG('确认请求来源和数据完整性')%>；</p></li>
                <li><p><%=LANG('请勿将')%>secretKey<%=LANG('在请求或响应中传输')%>；</p></li>
                <li><p>ZB-SIGN<%=LANG('的请求头是对')%><code>timestamp</code> + <code>method</code>  + <code>requestPath</code> + <code>request query/request body<%=LANG('字符串')%></code> (+<%=LANG('表示字符串连接')%>)，<%=LANG('以及')%>SecretKey，<%=LANG('使用')%>HMAC SHA256<%=LANG('方法加密')%>，<%=LANG('通过')%>Base64<%=LANG('编码输出而得到的')%>；</p>

                    <p><%=LANG('如')%>：<code>sign=CryptoJS.enc.Base64.Stringify(CryptoJS.HmacSHA256(timestamp + 'GET' + '/users/self/verify', SecretKey))</code></p>

                    <p><%=LANG('其中')%>，<code>timestamp</code><%=LANG('的值与')%><code>ZB-TIMESTAMP</code><%=LANG('请求头相同')%>，<%=LANG('为')%>ISO<%=LANG('格式')%>，<%=LANG('如')%><code>2021-01-05T14:05:28.616Z</code>。</p>

                    <p>method<%=LANG('是请求方法')%>，<%=LANG('字母全部大写')%>：<code>GET/POST</code>。</p>

                    <p>requestPath<%=LANG('是请求接口路径')%>。<%=LANG('如')%>：<code>/Server/api/v1/trade/getOrder</code></p>

                    <p>request query/request body<%=LANG('字符串')%>：<%=LANG('是按照')%>ASCII<%=LANG('码顺序进行排序')%>，<%=LANG('将各参数使用字符')%> “&amp;” <%=LANG('连接')%></p>

                    <p>SecretKey<%=LANG('为用户申请')%>APIKey<%=LANG('时所生成')%>，<%=LANG('需用')%>sha<%=LANG('加密')%>。<%=LANG('如')%>：<code>ceb892e0-0367-4cc1-88d1-ef9289feb053</code>，<%=LANG('加密')%>SecretKey<%=LANG('得到')%>：c9a206b430d6c6a43322a05806acb5f9514ac488</p>

                    <p><%=LANG('在线加密工具')%>: http://tool.oschina.net/encrypt?type=2</p>

                    <h2 id="<%=LANG('请求参数方式约定请求头参数')%>request query/request body<%=LANG('参数排序组成最终的要进行签名计算的字符串时间同步安全')%>">request query/request body<%=LANG('参数排序')%></h2>

                    <p><%=LANG('参数按照')%>ASCII<%=LANG('码排序')%>，<%=LANG('比如下面是原始的参数')%>：</p></li>
                <li><p>symbol=BTC_USDT</p></li>
                <li><p>orderId=1234567890</p>

                    <p><%=LANG('排序之后应该为')%>：</p></li>
                <li><p>orderId=1234567890</p></li>
                <li><p>symbol=BTC_USDT</p>

                    <p><%=LANG('按照以上顺序')%>，<%=LANG('将各参数使用字符')%> “&amp;” <%=LANG('连接')%></p></li>
                <li><p>orderId=1234567890&amp;symbol=BTC_USDT</p>

                    <h2 id="<%=LANG('请求参数方式约定请求头参数')%>request query/request body<%=LANG('参数排序组成最终的要进行签名计算的字符串时间同步安全')%>"><%=LANG('组成最终的要进行签名计算的字符串')%></h2>

                    <p><%=LANG('例如')%>：<%=LANG('请求头')%>ZB-TIMESTAMP: 2021-01-05T14:05:28.616Z，method: GET，<%=LANG('请求接口路径')%>：/Server/api/v1/trade/getOrder，<%=LANG('那么最终的要进行签名计算的字符串是')%></p>

                    <p>```
                        2021-01-05T14:05:28.616ZGET/Server/api/v1/trade/getOrderorderId=1234567890&amp;symbol=BTC_USDT
                        ```</p>

                    <h2 id="<%=LANG('请求参数方式约定请求头参数')%>request query/request body<%=LANG('参数排序组成最终的要进行签名计算的字符串时间同步安全')%>"><%=LANG('时间同步安全')%></h2></li>
                <li><p><%=LANG('签名接口均需要传递')%><code>timestamp</code><%=LANG('参数')%>, <%=LANG('其值应当是请求发送时刻的')%>unix<%=LANG('时间戳')%>（<%=LANG('毫秒')%>）</p></li>
                <li><p><%=LANG('服务器收到请求时会判断请求中的时间戳')%>，<%=LANG('如果是')%>1<%=LANG('分钟之前发出的')%>，<%=LANG('则请求会被认为无效')%>。<%=LANG('这个时间窗口值可以通过发送可选参数')%><code>recvWindow</code><%=LANG('来自定义')%>。</p></li>
                <li><p><%=LANG('另外')%>，<%=LANG('如果服务器计算得出客户端时间戳在服务器时间的')%>‘<%=LANG('未来')%>’3<%=LANG('秒以上')%>，<%=LANG('也会拒绝请求')%>。</p></li>
                <li><p><%=LANG('逻辑伪代码')%>：</p>

                    <p>if (timestamp &lt; (serverTime + 3000) &amp;&amp; (serverTime - timestamp) &lt;= recvWindow) {
                        // process request
                        } else {
                        // reject request
                        }</p>

                    <h4>1.3.6. Java<%=LANG('代码示例')%></h4>

                    <p>import org.voovan.tools.log.Logger;
                        import javax.crypto.Mac;
                        import javax.crypto.spec.SecretKeySpec;
                        import javax.management.RuntimeErrorException;
                        import java.io.UnsupportedEncodingException;
                        import java.security.InvalidKeyException;
                        import java.security.NoSuchAlgorithmException;
                        import java.util.Base64;
                        import java.util.Map;</p>

                    <p>/**</p>

                    <ul><li>Description: <%=LANG('采用')%> Hmac SHA256 + base64 <%=LANG('生成签名和验签')%></li>
                        <li>@author micheal</li>
                        <li>Date 2020/12/3 4:46 <%=LANG('下午')%></li>
                        <li><p>Version V1.0
                            */
                            public class HmacSHA256Base64Utils {</p>

                            <p>private static final int MAX<em>FAST</em>TIME = 3000;                  // <%=LANG('最大允许比服务器快的毫秒数')%>
                                private static final int MAX<em>SLOW</em>TIME = 1 * 60 * 1000;        // <%=LANG('最大允许比服务器慢的毫秒数')%></p>

                            <p>private static final String ALGORITHM = "HmacSHA256";
                                private static final String CHARSET = "UTF-8";</p>

                            <p>public static Mac SHA256_HMAC;</p>

                            <p>static {
                                try {
                                SHA256_HMAC = Mac.getInstance(ALGORITHM);
                                } catch (NoSuchAlgorithmException e) {
                                throw new RuntimeErrorException(new Error("Can't get Mac's instance."));
                                }
                                }</p>

                            <p>/**</p>

                            <ul><li><%=LANG('验证签名')%>
                                *</li>
                                <li>@param timestamp     <%=LANG('时间')%></li>
                                <li>@param method        <%=LANG('请求方法')%>：GET/POST</li>
                                <li>@param requestPath   <%=LANG('请求接口路径')%></li>
                                <li>@param params        <%=LANG('请求参数')%></li>
                                <li>@param apiKey        api key</li>
                                <li>@param secretKey     api<%=LANG('密钥')%></li>
                                <li><p>@return
                                    */
                                    public static boolean verify(String timestamp, String method, String requestPath, Map<string, object> params, String sign, String apiKey, String secretKey)
                                    throws UnsupportedEncodingException, CloneNotSupportedException, InvalidKeyException {</string,></p>

                                    <p>if (timestamp == null || method == null) {
                                        return false;
                                        }</p>

                                    <p>long serverTime = System.currentTimeMillis();
                                        if (timestamp &gt;= (serverTime + MAX<em>FAST</em>TIME) || (serverTime - timestamp) &gt; MAX<em>SLOW</em>TIME) {
                                        Logger.errorf("timestamp - serverTime：{1}", timestamp - serverTime);
                                        return false;
                                        }</p>

                                    <p>return sign(timestamp, method, requestPath, params, apiKey, secretKey).equalsIgnoreCase(sign);
                                        }</p></li></ul>

                            <p>/**</p>

                            <ul><li><%=LANG('生成签名')%></li>
                                <li><%=LANG('对')%>timestamp + method + requestPath + request query/request body<%=LANG('字符串')%> (+<%=LANG('表示字符串连接')%>)，<%=LANG('以及')%>SecretKey，<%=LANG('使用')%>HMAC SHA256<%=LANG('方法加密')%>，<%=LANG('通过')%>Base64<%=LANG('编码输出而得到的')%>
                                    *</li>
                                <li>@param timestamp     <%=LANG('时间')%></li>
                                <li>@param method        <%=LANG('请求方法')%>：GET/POST</li>
                                <li>@param requestPath   <%=LANG('请求接口路径')%></li>
                                <li>@param params        <%=LANG('请求参数')%></li>
                                <li>@param apiKey        api key</li>
                                <li>@param secretKey     api<%=LANG('密钥')%></li>
                                <li><p>@return
                                    */
                                    public static String sign(String timestamp, String method, String requestPath, Map<string, object> params, String apiKey, String secretKey)
                                    throws UnsupportedEncodingException, CloneNotSupportedException, InvalidKeyException {
                                    if (apiKey == null || secretKey == null) {
                                    throw new RuntimeException("apiKey/secretKey must not be null !");
                                    }</string,></p>

                                    <p>String signStr = buildSortParam(params);
                                        String content = timestamp + method + requestPath + signStr;
                                        String sign = generateSign(secretKey, content);
                                        return sign;
                                        }</p></li></ul>

                            <p>/**</p>

                            <ul><li><%=LANG('按照')%>ASCII<%=LANG('码排序')%>
                                *</li>
                                <li>@param params</li>
                                <li><p>@return
                                    */
                                    private static String buildSortParam(Map<string, object> params) {
                                    if (params == null || params.isEmpty()) {
                                    return "";
                                    }</string,></p>

                                    <p>StringBuilder toSign = params.entrySet().stream()
                                        .filter(en -&gt; en.getValue() != null &amp;&amp; !"".equals(en.getValue()))
                                        .sorted(Map.Entry.comparingByKey())
                                        // url
                                        .reduce(new StringBuilder(),
                                        (acc, it) -&gt; acc.append("&amp;").append(it.getKey()).append("=").append(it.getValue()),
                                        (l, r) -&gt; null)
                                        .deleteCharAt(0);
                                        return toSign.toString();
                                        }</p></li></ul>

                            <p></p><p>private static String generateSign(String secretKey, String content)
                                throws UnsupportedEncodingException, CloneNotSupportedException, InvalidKeyException {
                                byte[] secretKeyBytes = secretKey.getBytes(CHARSET);
                                SecretKeySpec secretKeySpec = new SecretKeySpec(secretKeyBytes, ALGORITHM);
                                Mac mac = (Mac) SHA256_HMAC.clone();
                                mac.init(secretKeySpec);
                                return Base64.getEncoder().encodeToString(mac.doFinal(content.getBytes(CHARSET)));
                                }</p></li></ul>
                    }</li>
            </ul>

            <h1 id="<%=LANG('公共行情')%>"><%=LANG('公共行情')%></h1>
            <h2 id="mstwdfjdyhgxnqd"><%=LANG('交易市场')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/config/market<span class="kd">List</span>
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">  "code"</span><span class="s2">: 1,</span>
<span class="nt">  "desc"</span><span class="s2">: "success",</span>
<span class="nt">  "data"</span><span class="s2">: [{</span>
<span class="nt">      "id"</span><span class="s2">: 100,</span>
<span class="nt">      "marketName"</span><span class="s2">: "BTC_USDT",</span>
<span class="nt">      "symbol"</span><span class="s2">: null,</span>
<span class="nt">      "marketType"</span><span class="s2">: 0,</span>
<span class="nt">      "buyerCurrencyId"</span><span class="s2">: 1041,</span>
<span class="nt">      "buyerCurrencyName"</span><span class="s2">: "USDT",</span>
<span class="nt">      "sellerCurrencyId"</span><span class="s2">: 1051,</span>
<span class="nt">      "sellerCurrencyName"</span><span class="s2">: "BTC",</span>
<span class="nt">      "marginCurrencyId"</span><span class="s2">: null,</span>
<span class="nt">      "marginCurrencyName"</span><span class="s2">: null,</span>
<span class="nt">      "amountDecimal"</span><span class="s2">: 8,</span>
<span class="nt">      "priceDecimal"</span><span class="s2">: 8,</span>
<span class="nt">      "minAmount"</span><span class="s2">: 0.01,</span>
<span class="nt">      "maxAmount"</span><span class="s2">: null,</span>
<span class="nt">      "minTradeMoney"</span><span class="s2">: null,</span>
<span class="nt">      "maxTradeMoney"</span><span class="s2">: null,</span>
<span class="nt">      "minFundingRate"</span><span class="s2">: null,</span>
<span class="nt">      "maxFundingRate"</span><span class="s2">: null,</span>
<span class="nt">      "maxLeverage"</span><span class="s2">: null,</span>
<span class="nt">      "riskWarnRatio"</span><span class="s2">: null,</span>
<span class="nt">      "defaultFeeRate"</span><span class="s2">: null,</span>
<span class="nt">      "contractType"</span><span class="s2">: null,</span>
<span class="nt">      "status"</span><span class="s2">: 1,</span>
<span class="nt">      "enableTime"</span><span class="s2">: 1481515932000,</span>
<span class="nt">      "lastTradePrice"</span><span class="s2">: 0,</span>
<span class="nt">      "defaultLeverage"</span><span class="s2">: 20,</span>
<span class="nt">      "defaultMarginMode"</span><span class="s2">: 1,</span>
<span class="nt">      "defaultPositionsMode"</span><span class="s2">: 2</span>
<span class="nt">    }</span>
<span class="nt">    ...</span>
<span class="nt">    ]</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="batujrspxrsyizq"><%=LANG('全量深度')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /api/<span class="kd">public</span>/v1/depth
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET
- <%=LANG('说明')%>：<%=LANG('获取全量深度数据')%>

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">: 10000,</span>
<span class="nt">    "desc"</span><span class="s2">: "<%=LANG('操作成功')%>",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">      "asks"</span><span class="s2">:[					 //<%=LANG('卖盘')%></span>
<span class="nt">        [</span>
<span class="nt">          16146.91,				//<%=LANG('价格')%></span>
<span class="nt">          0.029267				//<%=LANG('数量')%></span>
<span class="nt">        ],</span>
<span class="nt">        [</span>
<span class="nt">          16146.93,</span>
<span class="nt">          0.129334</span>
<span class="nt">        ]</span>
<span class="nt">      ],</span>
<span class="nt">      "bids"</span><span class="s2">:[							//<%=LANG('买盘')%></span>
<span class="nt">        [</span>
<span class="nt">          16131.41,</span>
<span class="nt">          8.866436</span>
<span class="nt">        ],</span>
<span class="nt">        [</span>
<span class="nt">          16131.36,</span>
<span class="nt">          8.85</span>
<span class="nt">        ]</span>
<span class="nt">      ]</span>
<span class="nt">	}</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('是否必须')%> </th><th> <%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>futuresAccountType </td><td> Integer </td><td> <%=LANG('否')%>       </td><td> <%=LANG('合约类型')%>，1:USDT<%=LANG('合约')%>（<%=LANG('默认')%>），2:<%=LANG('币本位合约')%> </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="btotfjwizuaqqau"><%=LANG('获取')%>K<%=LANG('线')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /api/<span class="kd">public</span>/v1/kline
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">: 10000,</span>
<span class="nt">    "desc"</span><span class="s2">: "<%=LANG('操作成功')%>",</span>
<span class="nt">    "data"</span><span class="s2">: [</span>
<span class="nt">    [</span>
<span class="nt">      16199,			//<%=LANG('开')%></span>
<span class="nt">      16212.3,		//<%=LANG('高')%></span>
<span class="nt">      16087.42,		//<%=LANG('低')%></span>
<span class="nt">      16131.4,		//<%=LANG('收')%></span>
<span class="nt">      1160.79137966,	//<%=LANG('量')%></span>
<span class="nt">      1605265200	//<%=LANG('时间')%></span>
<span class="nt">  	],</span>
<span class="nt">    [</span>
<span class="nt">      16199,			//<%=LANG('开')%></span>
<span class="nt">      16212.3,		//<%=LANG('高')%></span>
<span class="nt">      16087.42,		//<%=LANG('低')%></span>
<span class="nt">      16131.4,		//<%=LANG('收')%></span>
<span class="nt">      1160.79137966,	//<%=LANG('量')%></span>
<span class="nt">      1605266100	//<%=LANG('时间')%></span>
<span class="nt">  	]</span>
<span class="nt">  ]</span>
<span class="nt">} </span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="aorswseqqvefgbq"><%=LANG('获取历史成交')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
  - URL: /api/<span class="kd">public</span>/v1/trade
  - <%=LANG('接口类型')%>: Http
  - <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">: 10000,</span>
<span class="nt">    "desc"</span><span class="s2">: "<%=LANG('操作成功')%>",</span>
<span class="nt">    "data"</span><span class="s2">: [</span>
<span class="nt">		[</span>
<span class="nt">			16131.3,		//<%=LANG('价格')%></span>
<span class="nt">			0.03749,		//<%=LANG('数量')%></span>
<span class="nt">			-1,					//<%=LANG('卖')%></span>
<span class="nt">			1605266072	//<%=LANG('时间')%></span>
<span class="nt">		],</span>
<span class="nt">		[</span>
<span class="nt">			16130.01,		//<%=LANG('价格')%></span>
<span class="nt">			0.2,				//<%=LANG('数量')%></span>
<span class="nt">			1,					//<%=LANG('买')%></span>
<span class="nt">			1605266073	//<%=LANG('时间')%></span>
<span class="nt">		]      </span>
<span class="nt">	]</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('是否必须')%> </th><th> <%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>symbol </td><td> String  </td><td> <%=LANG('是')%>       </td><td> <%=LANG('交易对')%>，<%=LANG('如')%>：BTC_USDT </td></tr>
                    <tr><td>size   </td><td> Integer </td><td> <%=LANG('否')%>       </td><td> <%=LANG('条数')%>，<%=LANG('最大值为')%>100，<%=LANG('默认值为')%>50                 </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="zpsvrjenysuvqad"><%=LANG('获取')%>ticker<%=LANG('数据')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/config/market<span class="kd">List</span><%=LANG('测试测试')%>
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">: 10000,</span>
<span class="nt">    "desc"</span><span class="s2">: "<%=LANG('操作成功')%>",</span>
<span class="nt">    "data"</span><span class="s2">: {</span>
<span class="nt">      "BTC_USDT"</span><span class="s2">:[</span>
<span class="nt">        16100.9,		//<%=LANG('开盘价格')%></span>
<span class="nt">        16133.2,		//<%=LANG('最高价')%></span>
<span class="nt">        16100.1,		//<%=LANG('最低价')%></span>
<span class="nt">        16132.3,		//<%=LANG('最新成交价')%></span>
<span class="nt">        1000,		    //<%=LANG('成交量')%>(<%=LANG('最近的')%>24<%=LANG('小时')%>)</span>
<span class="nt">        0.19502,		//24H<%=LANG('涨跌幅')%></span>
<span class="nt">        1605266072,	//<%=LANG('时间')%></span>
<span class="nt">        104190.4595	//<%=LANG('以')%>rmb<%=LANG('为单位的最新成交价格')%></span>
<span class="nt">      ],</span>
<span class="nt">      "BCH_USDT"</span><span class="s2">:[</span>
<span class="nt">        16100.9,		//<%=LANG('开盘价格')%></span>
<span class="nt">        16133.2,		//<%=LANG('最高价')%></span>
<span class="nt">        16100.1,		//<%=LANG('最低价')%></span>
<span class="nt">        16132.3,		//<%=LANG('最新成交价')%></span>
<span class="nt">        1000,		    //<%=LANG('成交量')%>(<%=LANG('最近的')%>24<%=LANG('小时')%>)</span>
<span class="nt">        0.19502,		//24H<%=LANG('涨跌幅')%></span>
<span class="nt">        1605266072,	//<%=LANG('时间')%></span>
<span class="nt">        104190.4595	//<%=LANG('以')%>rmb<%=LANG('为单位的最新成交价格')%></span>
<span class="nt">      ]</span>
<span class="nt">  }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('是否必须')%> </th><th> <%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>symbol </td><td> String </td><td> <%=LANG('是')%>       </td><td> <%=LANG('交易对')%>，<%=LANG('如')%>：BTC_USDT </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="sheblaxqdlgeqyh"><%=LANG('最新标记价格')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /api/<span class="kd">public</span>/v1/ticker

- <%=LANG('接口类型')%>: Http

- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">:10000,</span>
<span class="nt">    "desc"</span><span class="s2">:"<%=LANG('操作成功')%>",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">        "EOS_USDT"</span><span class="s2">:"10.71673333",</span>
<span class="nt">        "BCH_USDT"</span><span class="s2">:"1253.45415974",</span>
<span class="nt">        "ETH_USDT"</span><span class="s2">:"3926.06",</span>
<span class="nt">        "BTC_USDT"</span><span class="s2">:"48962.19",</span>
<span class="nt">        "LTC_USDT"</span><span class="s2">:"316.383"</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('是否必须')%> </th><th> <%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>symbol </td><td> String </td><td> <%=LANG('否')%>       </td><td> <%=LANG('交易对')%>，<%=LANG('如')%>：BTC_USDT </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="inynwpfgbcuyejc"><%=LANG('最新指数价格')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /api/<span class="kd">public</span>/v1/indexPrice
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">:10000,</span>
<span class="nt">    "desc"</span><span class="s2">:"<%=LANG('操作成功')%>",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">        "EOS_USDT"</span><span class="s2">:"10.71673333",</span>
<span class="nt">        "BCH_USDT"</span><span class="s2">:"1253.45415974",</span>
<span class="nt">        "ETH_USDT"</span><span class="s2">:"3926.06",</span>
<span class="nt">        "BTC_USDT"</span><span class="s2">:"48962.19",</span>
<span class="nt">        "LTC_USDT"</span><span class="s2">:"316.383"</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('是否必须')%> </th><th> <%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>symbol </td><td> String </td><td> <%=LANG('是')%>       </td><td> <%=LANG('交易对')%>，<%=LANG('如')%>：BTC_USDT </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="riqgqphucjoyoqn"><%=LANG('标记价格')%>k<%=LANG('线')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /api/<span class="kd">public</span>/v1/markKline
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">: 10000,</span>
<span class="nt">    "desc"</span><span class="s2">: "<%=LANG('操作成功')%>",</span>
<span class="nt">    "data"</span><span class="s2">: [</span>
<span class="nt">    [</span>
<span class="nt">      16199,			//<%=LANG('开')%></span>
<span class="nt">      16212.3,		//<%=LANG('高')%></span>
<span class="nt">      16087.42,		//<%=LANG('低')%></span>
<span class="nt">      16131.4,		//<%=LANG('收')%></span>
<span class="nt">      1605265200	//<%=LANG('时间')%></span>
<span class="nt">  	],</span>
<span class="nt">    [</span>
<span class="nt">      16199,			//<%=LANG('开')%></span>
<span class="nt">      16212.3,		//<%=LANG('高')%></span>
<span class="nt">      16087.42,		//<%=LANG('低')%></span>
<span class="nt">      16131.4,		//<%=LANG('收')%></span>
<span class="nt">      1605266100	//<%=LANG('时间')%></span>
<span class="nt">  	]</span>
<span class="nt">  ]</span>
<span class="nt">} </span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="bsbybhasfylhjxh"><%=LANG('指数价格')%>k<%=LANG('线')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
  - URL: /api/<span class="kd">public</span>/v1/indexKline
  - <%=LANG('接口类型')%>: Http
  - <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">: 10000,</span>
<span class="nt">    "desc"</span><span class="s2">: "<%=LANG('操作成功')%>",</span>
<span class="nt">    "data"</span><span class="s2">: [</span>
<span class="nt">    [</span>
<span class="nt">      16199,			//<%=LANG('开')%></span>
<span class="nt">      16212.3,		//<%=LANG('高')%></span>
<span class="nt">      16087.42,		//<%=LANG('低')%></span>
<span class="nt">      16131.4,		//<%=LANG('收')%></span>
<span class="nt">      1605265200	//<%=LANG('时间')%></span>
<span class="nt">  	],</span>
<span class="nt">    [</span>
<span class="nt">      16199,			//<%=LANG('开')%></span>
<span class="nt">      16212.3,		//<%=LANG('高')%></span>
<span class="nt">      16087.42,		//<%=LANG('低')%></span>
<span class="nt">      16131.4,		//<%=LANG('收')%></span>
<span class="nt">      1605266100	//<%=LANG('时间')%></span>
<span class="nt">  	]</span>
<span class="nt">  ]</span>
<span class="nt">} </span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="ukxwgycpfvxrrwf"><%=LANG('资金费率和下次结算时间')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /api/<span class="kd">public</span>/v1/fundingRate
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">:10000,</span>
<span class="nt">    "desc"</span><span class="s2">:"<%=LANG('操作成功')%>",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">        "fundingRate"</span><span class="s2">:-0.297589,	//<%=LANG('资金费率')%></span>
<span class="nt">        "nextCalculateTime":"2021-01-15 00:00:00"	//<%=LANG('下次结算时间')%></span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="bldsfqemvvcrtlx"><%=LANG('最新标记价格和资金费率')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/premiumIndex
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">:10000,</span>
<span class="nt">    "data"</span><span class="s2">:[</span>
<span class="nt">        {</span>
<span class="nt">            "symbol"</span><span class="s2">:"BTC_USDT",</span>
<span class="nt">            "markPrice"</span><span class="s2">:"53821.58",</span>
<span class="nt">            "indexPrice"</span><span class="s2">:"53829.75",</span>
<span class="nt">            "lastFundingRate"</span><span class="s2">:"0"</span>
<span class="nt">        },</span>
<span class="nt">        {</span>
<span class="nt">            "symbol"</span><span class="s2">:"ETH_USDT",</span>
<span class="nt">            "markPrice"</span><span class="s2">:"2415.66",</span>
<span class="nt">            "indexPrice"</span><span class="s2">:"2415.63",</span>
<span class="nt">            "lastFundingRate"</span><span class="s2">:"0.00049"</span>
<span class="nt">        }</span>
<span class="nt">        ...</span>
<span class="nt">    ],</span>
<span class="nt">    "desc"</span><span class="s2">:"<%=LANG('操作成功')%>"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="efqzpczyyfipbkz"><%=LANG('查询资金费率历史')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/fundingRate
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">:10000,</span>
<span class="nt">    "data"</span><span class="s2">:[</span>
<span class="nt">        {</span>
<span class="nt">            "symbol"</span><span class="s2">:"ETH_USDT",</span>
<span class="nt">            "fundingRate"</span><span class="s2">:"0.000485",</span>
<span class="nt">            "fundingTime"</span><span class="s2">:"1616680800000"</span>
<span class="nt">        },</span>
<span class="nt">        {</span>
<span class="nt">            "symbol"</span><span class="s2">:"ETH_USDT",</span>
<span class="nt">            "fundingRate"</span><span class="s2">:"-0.000049",</span>
<span class="nt">            "fundingTime"</span><span class="s2">:"1616677200000"</span>
<span class="nt">        }</span>
<span class="nt">        ...</span>
<span class="nt">    ],</span>
<span class="nt">    "desc"</span><span class="s2">:"<%=LANG('操作成功')%>"</span>
<span class="nt">} </span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="ppzswbudxagqahs"><%=LANG('查询市场强平订单')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/allForceOrders
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">:10000,</span>
<span class="nt">    "data"</span><span class="s2">:[</span>
<span class="nt">        {</span>
<span class="nt">            "symbol"</span><span class="s2">:"ETH_USDT",</span>
<span class="nt">            "price"</span><span class="s2">:"1151.16",</span>
<span class="nt">            "amount"</span><span class="s2">:"156.566",</span>
<span class="nt">            "tradeAmount"</span><span class="s2">:"156.566",</span>
<span class="nt">            "tradeAvgPrice"</span><span class="s2">:"1134.59",</span>
<span class="nt">            "side"</span><span class="s2">:"<%=LANG('平空')%>",</span>
<span class="nt">            "status"</span><span class="s2">:"<%=LANG('已完成')%>",</span>
<span class="nt">            "time"</span><span class="s2">:"1611304581850"</span>
<span class="nt">        },</span>
<span class="nt">        {</span>
<span class="nt">            "symbol"</span><span class="s2">:"ETH_USDT",</span>
<span class="nt">            "price"</span><span class="s2">:"1237.2",</span>
<span class="nt">            "amount"</span><span class="s2">:"60.028",</span>
<span class="nt">            "tradeAmount"</span><span class="s2">:"0",</span>
<span class="nt">            "tradeAvgPrice"</span><span class="s2">:"0",</span>
<span class="nt">            "side"</span><span class="s2">:"<%=LANG('平空')%>",</span>
<span class="nt">            "status"</span><span class="s2">:"<%=LANG('完全取消')%>",</span>
<span class="nt">            "time"</span><span class="s2">:"1611373325930"</span>
<span class="nt">        }</span>
<span class="nt">        ...</span>
<span class="nt">    ],</span>
<span class="nt">    "desc"</span><span class="s2">:"<%=LANG('操作成功')%>"</span>
<span class="nt">} </span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('是否必须')%> </th><th> <%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>symbol    </td><td> String </td><td> <%=LANG('否')%>       </td><td> <%=LANG('交易对')%>，<%=LANG('如')%>：BTC_USDT                                </td></tr>
                    <tr><td>startTime </td><td> Long   </td><td> <%=LANG('否')%>       </td><td> <%=LANG('起始时间')%>                                            </td></tr>
                    <tr><td>endTime   </td><td> Long   </td><td> <%=LANG('否')%>       </td><td> <%=LANG('结束时间')%>,<%=LANG('默认当前时间')%>                               </td></tr>
                    <tr><td>limit     </td><td> String </td><td> <%=LANG('否')%>       </td><td> <%=LANG('从')%>endTime<%=LANG('倒推算起的数据条数')%>，<%=LANG('默认值')%>:100 <%=LANG('最大值')%>:1000 </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="btglvfqrwmvugxm"><%=LANG('大户账户数多空比')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/data/topLongShortAccountRatio
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">:10000,</span>
<span class="nt">    "data"</span><span class="s2">:[</span>
<span class="nt">        {</span>
<span class="nt">            "symbol"</span><span class="s2">:"ETH_USDT",</span>
<span class="nt">            "timestamp"</span><span class="s2">:"1619068500000",</span>
<span class="nt">            "longAccount"</span><span class="s2">:"5",</span>
<span class="nt">            "shortAccount"</span><span class="s2">:"6",</span>
<span class="nt">            "longShortRatio"</span><span class="s2">:"0.83"</span>
<span class="nt">        },</span>
<span class="nt">        {</span>
<span class="nt">            "symbol"</span><span class="s2">:"ETH_USDT",</span>
<span class="nt">            "timestamp"</span><span class="s2">:"1619068800000",</span>
<span class="nt">            "longAccount"</span><span class="s2">:"5",</span>
<span class="nt">            "shortAccount"</span><span class="s2">:"6",</span>
<span class="nt">            "longShortRatio"</span><span class="s2">:"0.83"</span>
<span class="nt">        }</span>
<span class="nt">    ],</span>
<span class="nt">    "desc"</span><span class="s2">:"<%=LANG('操作成功')%>"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="cvntfkbhvkfxhhv"><%=LANG('大户持仓量多空比')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/data/topLongShortPositionRatio
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">:10000,</span>
<span class="nt">    "data"</span><span class="s2">:[</span>
<span class="nt">        {</span>
<span class="nt">            "symbol"</span><span class="s2">:"ETH_USDT",</span>
<span class="nt">            "timestamp"</span><span class="s2">:"1619068800000",</span>
<span class="nt">            "longPosition"</span><span class="s2">:"5570.414",</span>
<span class="nt">            "shortPosition"</span><span class="s2">:"5533.141",</span>
<span class="nt">            "longShortRatio"</span><span class="s2">:"1.01"</span>
<span class="nt">        },</span>
<span class="nt">        {</span>
<span class="nt">            "symbol"</span><span class="s2">:"ETH_USDT",</span>
<span class="nt">            "timestamp"</span><span class="s2">:"1619069100000",</span>
<span class="nt">            "longPosition"</span><span class="s2">:"5572.847",</span>
<span class="nt">            "shortPosition"</span><span class="s2">:"5535.575",</span>
<span class="nt">            "longShortRatio"</span><span class="s2">:"1.01"</span>
<span class="nt">        }</span>
<span class="nt">    ],</span>
<span class="nt">    "desc"</span><span class="s2">:"<%=LANG('操作成功')%>"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('是否必须')%> </th><th> <%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>symbol    </td><td> String </td><td> <%=LANG('是')%>       </td><td> <%=LANG('交易对')%>，<%=LANG('如')%>：BTC_USDT                                      </td></tr>
                    <tr><td>period    </td><td> String </td><td> <%=LANG('是')%>       </td><td> <%=LANG('周期')%>，<%=LANG('如')%>："5m","15m","30m","1h","2h","4h","6h","12h","1d" </td></tr>
                    <tr><td>startTime </td><td> Long   </td><td> <%=LANG('否')%>       </td><td> <%=LANG('起始时间')%>                                                  </td></tr>
                    <tr><td>endTime   </td><td> Long   </td><td> <%=LANG('否')%>       </td><td> <%=LANG('结束时间')%>,<%=LANG('默认当前时间')%>                                     </td></tr>
                    <tr><td>limit     </td><td> String </td><td> <%=LANG('否')%>       </td><td> <%=LANG('从')%>endTime<%=LANG('倒推算起的数据条数')%>，<%=LANG('默认值')%>:30 <%=LANG('最大值')%>:500         </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="ysnbkikzpzvugfy">zb<%=LANG('现货兑换价格')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /api/<span class="kd">public</span>/v1/spotPrice
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">:10000,</span>
<span class="nt">    "desc"</span><span class="s2">:"<%=LANG('操作成功')%>",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">        "ETH_USDT"</span><span class="s2">:"2150.33"</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('是否必须')%> </th><th> <%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>symbol </td><td> String </td><td> <%=LANG('否')%>       </td><td> <%=LANG('交易对')%>，<%=LANG('如')%>：ETH_USDT    </td></tr>
                    <tr><td>side   </td><td> String </td><td> <%=LANG('是')%>       </td><td> bids：<%=LANG('买价')%>， asks：<%=LANG('卖价')%> </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>



            <h1 id="<%=LANG('帐户和交易')%>"><%=LANG('帐户和交易')%></h1>
            <h2 id="hisdretjruwmmjn"><%=LANG('合约账户信息')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/Fund/getAccount
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt"> {</span>
<span class="nt">      "code"</span><span class="s2">: 1,</span>
<span class="nt">      "desc"</span><span class="s2">: "success",</span>
<span class="nt">      "data"</span><span class="s2">: {</span>
<span class="nt">        "account"</span><span class="s2">: {//<%=LANG('账户信息')%>，<%=LANG('包括可用余额')%>、<%=LANG('保证金余额')%>、<%=LANG('未实现盈亏')%></span>
<span class="nt">          "accountBalance"</span><span class="s2">: 996.12,</span>
<span class="nt">          "allMargin"</span><span class="s2">: 1000.13,</span>
<span class="nt">          "available"</span><span class="s2">: 1002.1,</span>
<span class="nt">          "freeze"</span><span class="s2">: 2304.1212,</span>
<span class="nt">          "allUnrealizedPnl"</span><span class="s2">: -123.789,</span>
<span class="nt">          </span>
<span class="nt">          "accountBalanceConvert"</span><span class="s2">: 996.12,</span>
<span class="nt">          "allMarginConvert"</span><span class="s2">: 1000.13,</span>
<span class="nt">          "availableConvert"</span><span class="s2">: 1002.1,</span>
<span class="nt">          "freezeConvert"</span><span class="s2">: 2304.1212,</span>
<span class="nt">          "allUnrealizedPnlConvert"</span><span class="s2">: -123.789,</span>
<span class="nt">         </span>
<span class="nt">          "convertUnit"</span><span class="s2">: "cny",</span>
<span class="nt">          "unit"</span><span class="s2">: "usdt",</span>
<span class="nt">          "percent"</span><span class="s2">: "12.12%"</span>
<span class="nt">        },   </span>
<span class="nt">        "assets"</span><span class="s2">: [{//<%=LANG('资产信息')%>，<%=LANG('包括可用')%>、<%=LANG('冻结')%></span>
<span class="nt">           "userId"</span><span class="s2">: 3,</span>
<span class="nt">           "currencyId"</span><span class="s2">: 11,</span>
<span class="nt">           "amount"</span><span class="s2">: 12.2,</span>
<span class="nt">           "freezeAmount"</span><span class="s2">: 1,</span>
<span class="nt">           "id"</span><span class="s2">: 6740243890479048704,</span>
<span class="nt">           "accountBalance"</span><span class="s2">: 1212.12,</span>
<span class="nt">           "allUnrealizedPnl"</span><span class="s2">: -112.12,</span>
<span class="nt">           "allMargin"</span><span class="s2">: 1212.12,</span>
<span class="nt">           "createTime"</span><span class="s2">: 1606999371166,</span>
<span class="nt">           "modifyTime"</span><span class="s2">: 1607003956239,</span>
<span class="nt">           "extend"</span><span class="s2">: null</span>
<span class="nt">        },</span>
<span class="nt">        {}]     </span>
<span class="nt">      }</span>
<span class="nt"> }</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('是否必须')%> </th><th> <%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>futuresAccountType </td><td> Int  </td><td> <%=LANG('否')%>       </td><td> <%=LANG('合约类型')%>，1:USDT<%=LANG('合约')%>，2:<%=LANG('币本位合约')%>                           </td></tr>
                    <tr><td>convertUnit        </td><td> <%=LANG('否')%>   </td><td> String   </td><td> <%=LANG('折合单位')%>，<%=LANG('页面显示上')%>"≈"<%=LANG('号后面的数字单位')%>，<%=LANG('可选')%>：cny，usd/usdt,btc,<%=LANG('默认')%>cny </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>userId</td><td><%=LANG('用户')%>id</td></tr>
                    <tr><td>currencyId</td><td><%=LANG('币种')%>id</td></tr>
                    <tr><td>currencyName</td><td><%=LANG('币种名')%></td></tr>
                    <tr><td>amount</td><td><%=LANG('可用资产量')%></td></tr>
                    <tr><td>freezeAmount</td><td><%=LANG('冻结量')%></td></tr>
                    <tr><td>id</td><td><%=LANG('资金')%>id</td></tr>
                    <tr><td>accountBalance</td><td><%=LANG('账户余额')%></td></tr>
                    <tr><td>allUnrealizedPnl</td><td><%=LANG('账户未实现盈亏')%></td></tr>
                    <tr><td>allMargin</td><td><%=LANG('账户保证金')%></td></tr>
                    <tr><td>createTime</td><td><%=LANG('创建时间')%></td></tr>
                    <tr><td>modifyTime</td><td><%=LANG('更新时间')%></td></tr>
                    <tr><td>extend</td><td><%=LANG('备用字段')%></td></tr>
                    <tr><td>accountBalance</td><td><%=LANG('账户余额')%>：<%=LANG('可用')%>+<%=LANG('冻结')%>+<%=LANG('所以仓位未实现盈亏')%></td></tr>
                    <tr><td>allMargin</td><td><%=LANG('所有仓位保证金')%></td></tr>
                    <tr><td>available</td><td><%=LANG('可用资产量')%></td></tr>
                    <tr><td>freeze</td><td><%=LANG('冻结量')%></td></tr>
                    <tr><td>allUnrealizedPnl</td><td><%=LANG('所有对应仓位的累积未实现盈亏')%></td></tr>
                    <tr><td>accountBalance</td><td><%=LANG('账户余额')%>：<%=LANG('可用')%>+<%=LANG('冻结')%>+<%=LANG('所以仓位未实现盈亏')%></td></tr>
                    <tr><td>unit</td><td><%=LANG('固定返回')%>，<%=LANG('如果是')%>u<%=LANG('本位')%>，<%=LANG('返回')%>usdt，<%=LANG('如果是币本位返回')%>btc，<%=LANG('如果是')%>qc<%=LANG('合约返回')%>qc，<%=LANG('统计数据的单位')%></td></tr>
                    <tr><td>allMarginConvert</td><td><%=LANG('所以仓位保证金折合')%></td></tr>
                    <tr><td>availableConvert</td><td><%=LANG('可用资产量折合')%></td></tr>
                    <tr><td>freezeConvert</td><td><%=LANG('冻结量折合')%></td></tr>
                    <tr><td>allUnrealizedPnlConvert</td><td><%=LANG('所有对应仓位的累积未实现盈亏折合')%></td></tr>
                    <tr><td>convertUnit</td><td><%=LANG('折合单位')%>，<%=LANG('页面显示上')%>"≈"<%=LANG('号后面的数字单位')%>，<%=LANG('如')%>：cny，usd,btc</td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="sfscyazyhqcqmzv"><%=LANG('合约仓位')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/Positions/getPositions
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">     "code"</span><span class="s2">: 10000,</span>
<span class="nt">     "desc"</span><span class="s2">: "success",</span>
<span class="nt">     "data"</span><span class="s2">: [</span>
<span class="nt">         {</span>
<span class="nt">             "userId"</span><span class="s2">: 3,</span>
<span class="nt">             "marketId"</span><span class="s2">: 100,</span>
<span class="nt">             "marketName"</span><span class="s2">: null,</span>
<span class="nt">             "side"</span><span class="s2">: 0,</span>
<span class="nt">             "leverage"</span><span class="s2">: 20,</span>
<span class="nt">             "amount"</span><span class="s2">: 1,</span>
<span class="nt">             "freezeAmount"</span><span class="s2">: 0,</span>
<span class="nt">             "avgPrice"</span><span class="s2">: null,</span>
<span class="nt">             "liquidatePrice"</span><span class="s2">: null,</span>
<span class="nt">             "margin"</span><span class="s2">: 0,</span>
<span class="nt">             "marginMode"</span><span class="s2">: 1,</span>
<span class="nt">             "positionsMode"</span><span class="s2">: 2,</span>
<span class="nt">             "status"</span><span class="s2">: 1,</span>
<span class="nt">             "unrealizedPnl"</span><span class="s2">: 0,</span>
<span class="nt">             "marginBalance"</span><span class="s2">: 0,</span>
<span class="nt">             "maintainMargin"</span><span class="s2">: 0,</span>
<span class="nt">             "marginRate"</span><span class="s2">: 0,</span>
<span class="nt">             "nominalValue"</span><span class="s2">: 0,</span>
<span class="nt">             "id"</span><span class="s2">: 6740550682467641344,</span>
<span class="nt">             "createTime"</span><span class="s2">: 1607072516076,</span>
<span class="nt">             "modifyTime"</span><span class="s2">: null,</span>
<span class="nt">             "extend"</span><span class="s2">: null</span>
<span class="nt">         }</span>
<span class="nt">        ...</span>
<span class="nt">     ]</span>
<span class="nt"> }</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>marketId           </td><td> <%=LANG('否')%>   </td><td> Long    </td><td> <%=LANG('市场')%>id<%=LANG('和市场名称必选其一')%>      </td></tr>
                    <tr><td>symbol             </td><td> <%=LANG('否')%>   </td><td> String  </td><td> <%=LANG('市场')%>id<%=LANG('和市场名称必选其一')%>      </td></tr>
                    <tr><td>side               </td><td> <%=LANG('否')%>   </td><td> Integer </td><td> 1 <%=LANG('多仓')%>  0 <%=LANG('空仓')%>                </td></tr>
                    <tr><td>futuresAccountType </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> 1:USDT<%=LANG('永续合约')%>  2：<%=LANG('币本位合约')%></td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>userId</td><td><%=LANG('用户')%>id</td></tr>
                    <tr><td>marketId</td><td><%=LANG('市场')%>id</td></tr>
                    <tr><td>marketName</td><td><%=LANG('市场名称')%></td></tr>
                    <tr><td>side</td><td><%=LANG('开仓方向')%>,<%=LANG('开多')%>：1 <%=LANG('开空')%>：0</td></tr>
                    <tr><td>leverage</td><td><%=LANG('杠杆倍数')%></td></tr>
                    <tr><td>amount</td><td><%=LANG('持有仓位数量')%></td></tr>
                    <tr><td>freezeAmount</td><td><%=LANG('下单冻结仓位数量')%></td></tr>
                    <tr><td>avgPrice</td><td><%=LANG('开仓均价')%></td></tr>
                    <tr><td>liquidatePrice</td><td><%=LANG('强平价格')%></td></tr>
                    <tr><td>margin</td><td><%=LANG('保证金')%></td></tr>
                    <tr><td>marginMode</td><td><%=LANG('保证金模式')%>：1<%=LANG('逐仓')%>（<%=LANG('默认')%>），2<%=LANG('全仓')%></td></tr>
                    <tr><td>unrealizedPnl</td><td><%=LANG('未实现盈亏')%></td></tr>
                    <tr><td>marginBalance</td><td><%=LANG('保证金余额')%></td></tr>
                    <tr><td>maintainMargin</td><td><%=LANG('维持保证金')%></td></tr>
                    <tr><td>marginRate</td><td><%=LANG('保证金率')%></td></tr>
                    <tr><td>nominalValue</td><td><%=LANG('头寸的名义价值')%></td></tr>
                    <tr><td>liquidateLevel</td><td><%=LANG('强平档位')%>，<%=LANG('即头寸对应的维持保证金档位')%></td></tr>
                    <tr><td>autoLightenRatio</td><td><%=LANG('自动减仓比例')%>，<%=LANG('范围')%>0～1，<%=LANG('数字越大自动减仓风险越高')%></td></tr>
                    <tr><td>returnRate</td><td><%=LANG('回报率')%></td></tr>
                    <tr><td>id</td><td><%=LANG('仓位')%>id</td></tr>
                    <tr><td>createTime</td><td><%=LANG('创建时间')%></td></tr>
                    <tr><td>modifyTime</td><td><%=LANG('修改时间')%></td></tr>
                    <tr><td>extend</td><td><%=LANG('备用字段')%></td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="icpgkgxmoovhnzu"><%=LANG('保证金信息查询')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/Positions/marginInfo
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt"> {</span>
<span class="nt">     "code"</span><span class="s2">: 10000,</span>
<span class="nt">     "desc"</span><span class="s2">: "success",</span>
<span class="nt">     "data"</span><span class="s2">: {</span>
<span class="nt">         "maxAdd"</span><span class="s2">: 1212.12,</span>
<span class="nt">         "maxSub"</span><span class="s2">: 1212.12,</span>
<span class="nt">         "liquidatePrice"</span><span class="s2">: 121212.12</span>
<span class="nt">     }</span>
<span class="nt"> }</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>positionsId        </td><td> <%=LANG('否')%>   </td><td> Long    </td><td> <%=LANG('仓位')%>Id                        </td></tr>
                    <tr><td>futuresAccountType </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> 1:USDT<%=LANG('永续合约')%>  2：<%=LANG('币本位合约')%></td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>maxAdd</td><td><%=LANG('最大可增加保证金')%></td></tr>
                    <tr><td>maxSub</td><td><%=LANG('最大可减少保证金')%></td></tr>
                    <tr><td>liquidatePrice</td><td><%=LANG('预估强平价格')%></td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="gxknbzfvpvbibyi"><%=LANG('保证金提取或者增加')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/Positions/updateMargin
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: POST

{
    "positionsId":6742095107924699136,
    "amount":0.1,
    "futuresAccountType":1,
    "type":0
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">     "code"</span><span class="s2">: 10000,</span>
<span class="nt">     "desc"</span><span class="s2">: "success",</span>
<span class="nt">     "data"</span><span class="s2">: {</span>
<span class="nt">         "userId"</span><span class="s2">: 13049813743,</span>
<span class="nt">         "marketId"</span><span class="s2">: 100,</span>
<span class="nt">         "marketName"</span><span class="s2">: "BTC_USDT",</span>
<span class="nt">         "side"</span><span class="s2">: 0,</span>
<span class="nt">         "leverage"</span><span class="s2">: 20,</span>
<span class="nt">         "amount"</span><span class="s2">: 0.2,</span>
<span class="nt">         "freezeAmount"</span><span class="s2">: 0,</span>
<span class="nt">         "avgPrice"</span><span class="s2">: 18094,</span>
<span class="nt">         "liquidatePrice"</span><span class="s2">: 19516,</span>
<span class="nt">         "margin"</span><span class="s2">: 299.90000391,</span>
<span class="nt">         "marginMode"</span><span class="s2">: 1,</span>
<span class="nt">         "positionsMode"</span><span class="s2">: 2,</span>
<span class="nt">         "status"</span><span class="s2">: 1,</span>
<span class="nt">         "unrealizedPnl"</span><span class="s2">: 44.245187542,</span>
<span class="nt">         "marginBalance"</span><span class="s2">: 0,</span>
<span class="nt">         "maintainMargin"</span><span class="s2">: 0,</span>
<span class="nt">         "marginRate"</span><span class="s2">: 0,</span>
<span class="nt">         "nominalValue"</span><span class="s2">: 3618.57160886009711505219580608,</span>
<span class="nt">         "id"</span><span class="s2">: 6742095107924699136,</span>
<span class="nt">         "createTime"</span><span class="s2">: 1607503759950,</span>
<span class="nt">         "modifyTime"</span><span class="s2">: 1607747709697,</span>
<span class="nt">         "extend"</span><span class="s2">: null</span>
<span class="nt">     }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="tferadohvkravlv"><%=LANG('仓位杠杆设置')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/setting/setLeverage
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: POST
{
    "symbol":"BTC_USDT",
    "leverage":12,
    "futuresAccountType":1
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt"> {</span>
<span class="nt">     "code"</span><span class="s2">: 10000,</span>
<span class="nt">     "desc"</span><span class="s2">: "success",</span>
<span class="nt">     "data"</span><span class="s2">: {</span>
<span class="nt">         "userId"</span><span class="s2">: 111,</span>
<span class="nt">         "marketId"</span><span class="s2">: 100,</span>
<span class="nt">         "leverage"</span><span class="s2">: 20,</span>
<span class="nt">         "marginMode"</span><span class="s2">: 1,</span>
<span class="nt">         "positionsMode"</span><span class="s2">: 2,</span>
<span class="nt">         "enableAutoAppend"</span><span class="s2">: 1,</span>
<span class="nt">         "maxAppendAmount"</span><span class="s2">: "11212",</span>
<span class="nt">         "marginCoins"</span><span class="s2">: "eth,qc",</span>
<span class="nt">         "id"</span><span class="s2">: 6737268451833817088,</span>
<span class="nt">         "createTime"</span><span class="s2">: 1606289971312,</span>
<span class="nt">         "modifyTime"</span><span class="s2">: 0,</span>
<span class="nt">         "extend"</span><span class="s2">: null</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>marketId           </td><td> <%=LANG('否')%>   </td><td> Long    </td><td> <%=LANG('市场')%>id<%=LANG('和市场名称必选其一')%>      </td></tr>
                    <tr><td>symbol             </td><td> <%=LANG('否')%>   </td><td> String  </td><td> <%=LANG('市场')%>id<%=LANG('和市场名称必选其一')%>      </td></tr>
                    <tr><td>leverage           </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> <%=LANG('杠杆倍数')%>                      </td></tr>
                    <tr><td>futuresAccountType </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> 1:USDT<%=LANG('永续合约')%>  2：<%=LANG('币本位合约')%></td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>userId</td><td><%=LANG('用户')%>id</td></tr>
                    <tr><td>marketId</td><td><%=LANG('市场')%>id</td></tr>
                    <tr><td>leverage</td><td><%=LANG('杠杠倍数')%></td></tr>
                    <tr><td>marginMode</td><td><%=LANG('保证金模式')%>：1<%=LANG('逐仓')%>（<%=LANG('默认')%>），2<%=LANG('全仓')%></td></tr>
                    <tr><td>id</td><td><%=LANG('仓位')%>id</td></tr>
                    <tr><td>maxAppendAmount</td><td><%=LANG('最多追加保证金')%>，<%=LANG('可能被修改')%>，<%=LANG('如果为')%>0<%=LANG('会关闭自动增加保证金')%></td></tr>
                    <tr><td>marginCoins</td><td><%=LANG('配置的按顺序冻结的保证金')%>，<%=LANG('如')%> eth,usdt,qc</td></tr>
                    <tr><td>createTime</td><td><%=LANG('创建时间')%></td></tr>
                    <tr><td>modifyTime</td><td><%=LANG('更新时间')%></td></tr>
                    <tr><td>extend</td><td><%=LANG('备用字段')%></td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="gktqheuxwyksbpy"><%=LANG('仓位持仓模式设置')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/setting/setPositionsMode
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: POST
{
    "marketId":100,
    "positionsMode":1,
    "futuresAccountType":1
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">     "code"</span><span class="s2">: 10000,</span>
<span class="nt">     "desc"</span><span class="s2">: "success",</span>
<span class="nt">     "data"</span><span class="s2">: {</span>
<span class="nt">         "userId"</span><span class="s2">: 111,</span>
<span class="nt">         "marketId"</span><span class="s2">: 100,</span>
<span class="nt">         "leverage"</span><span class="s2">: 20,</span>
<span class="nt">         "marginMode"</span><span class="s2">: 1,</span>
<span class="nt">         "positionsMode"</span><span class="s2">: 2,</span>
<span class="nt">         "enableAutoAppend"</span><span class="s2">: 1,</span>
<span class="nt">         "maxAppendAmount"</span><span class="s2">: "11212",</span>
<span class="nt">          "marginCoins"</span><span class="s2">: "eth,qc",</span>
<span class="nt">         "id"</span><span class="s2">: 6737268451833817088,</span>
<span class="nt">         "createTime"</span><span class="s2">: 1606289971312,</span>
<span class="nt">         "modifyTime"</span><span class="s2">: 0,</span>
<span class="nt">         "extend"</span><span class="s2">: null</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>marketId           </td><td> <%=LANG('否')%>   </td><td> Long    </td><td> <%=LANG('市场')%>id<%=LANG('和市场名称必选其一')%>      </td></tr>
                    <tr><td>symbol             </td><td> <%=LANG('否')%>   </td><td> String  </td><td> <%=LANG('市场')%>id<%=LANG('和市场名称必选其一')%>      </td></tr>
                    <tr><td>positionsMode      </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> 1:<%=LANG('单向持仓')%>，2: <%=LANG('双向持仓')%>       </td></tr>
                    <tr><td>futuresAccountType </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> 1:USDT<%=LANG('永续合约')%>  2：<%=LANG('币本位合约')%></td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>userId</td><td><%=LANG('用户')%>id</td></tr>
                    <tr><td>marketId</td><td><%=LANG('市场')%>id</td></tr>
                    <tr><td>leverage</td><td><%=LANG('杠杠倍数')%></td></tr>
                    <tr><td>marginMode</td><td><%=LANG('保证金模式')%>：1<%=LANG('逐仓')%>（<%=LANG('默认')%>），2<%=LANG('全仓')%></td></tr>
                    <tr><td>id</td><td><%=LANG('仓位')%>id</td></tr>
                    <tr><td>maxAppendAmount</td><td><%=LANG('最多追加保证金')%>，<%=LANG('可能被修改')%>，<%=LANG('如果为')%>0<%=LANG('会关闭自动增加保证金')%></td></tr>
                    <tr><td>marginCoins</td><td><%=LANG('配置的按顺序冻结的保证金')%>，<%=LANG('如')%> eth,usdt,qc</td></tr>
                    <tr><td>createTime</td><td><%=LANG('创建时间')%></td></tr>
                    <tr><td>modifyTime</td><td><%=LANG('更新时间')%></td></tr>
                    <tr><td>extend</td><td><%=LANG('备用字段')%></td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="hdmjviixsmbovfc"><%=LANG('仓位保证金模式设置')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/setting/setMarginMode
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: POST
{
    "symbol":"btc_usdt",
    "marginMode":1,
    "futuresAccountType":1
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">     "code"</span><span class="s2">: 10000,</span>
<span class="nt">     "desc"</span><span class="s2">: "success",</span>
<span class="nt">     "data"</span><span class="s2">: {</span>
<span class="nt">         "userId"</span><span class="s2">: 111,</span>
<span class="nt">         "marketId"</span><span class="s2">: 100,</span>
<span class="nt">         "leverage"</span><span class="s2">: 20,</span>
<span class="nt">         "marginMode"</span><span class="s2">: 1,</span>
<span class="nt">         "positionsMode"</span><span class="s2">: 2,</span>
<span class="nt">         "enableAutoAppend"</span><span class="s2">: 1,</span>
<span class="nt">         "maxAppendAmount"</span><span class="s2">: "11212",</span>
<span class="nt">         "marginCoins"</span><span class="s2">: "eth,qc",</span>
<span class="nt">         "id"</span><span class="s2">: 6737268451833817088,</span>
<span class="nt">         "createTime"</span><span class="s2">: 1606289971312,</span>
<span class="nt">         "modifyTime"</span><span class="s2">: 0,</span>
<span class="nt">         "extend"</span><span class="s2">: null</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>marketId           </td><td> <%=LANG('否')%>   </td><td> Long    </td><td> <%=LANG('市场')%>id<%=LANG('和市场名称必选其一')%>      </td></tr>
                    <tr><td>symbol             </td><td> <%=LANG('否')%>   </td><td> String  </td><td> <%=LANG('市场')%>id<%=LANG('和市场名称必选其一')%>      </td></tr>
                    <tr><td>marginMode         </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> 1<%=LANG('逐仓')%>（<%=LANG('默认')%>），2<%=LANG('全仓')%>          </td></tr>
                    <tr><td>futuresAccountType </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> 1:USDT<%=LANG('永续合约')%>  2：<%=LANG('币本位合约')%></td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>enableAutoAppend	：	<%=LANG('是否开启自动追加保证金')%> 1</td><td><%=LANG('开启')%> 0 ：<%=LANG('不开启')%></td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="bynnskdlkrxkcga"><%=LANG('查看用户当前头寸')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/Positions/getNominalValue
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">     "code"</span><span class="s2">: 10000,</span>
<span class="nt">     "desc"</span><span class="s2">: "success",</span>
<span class="nt">     "data"</span><span class="s2">: {</span>
<span class="nt">        "nominalValue"</span><span class="s2">:7692.229,</span>
<span class="nt">        "openOrderNominalValue"</span><span class="s2">:342.1,</span>
<span class="nt">        "marketId"</span><span class="s2">:100</span>
<span class="nt">    } </span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>marketId           </td><td> <%=LANG('否')%>   </td><td> Long    </td><td> <%=LANG('市场')%>id<%=LANG('和市场名称必选其一')%>      </td></tr>
                    <tr><td>symbol             </td><td> <%=LANG('否')%>   </td><td> String  </td><td> <%=LANG('市场')%>id<%=LANG('和市场名称必选其一')%>      </td></tr>
                    <tr><td>side               </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> <%=LANG('方向')%>：1：<%=LANG('开多')%>   0 <%=LANG('开空')%>        </td></tr>
                    <tr><td>futuresAccountType </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> 1:USDT<%=LANG('永续合约')%>  2：<%=LANG('币本位合约')%></td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>side	：	1</td><td><%=LANG('多仓')%> 0：<%=LANG('空仓')%></td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="pgracxuossuafzh"><%=LANG('查询用户账单')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/Fund/getBill
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">     "code"</span><span class="s2">: 10000,</span>
<span class="nt">     "desc"</span><span class="s2">: "success",</span>
<span class="nt">     "data"</span><span class="s2">: {</span>
<span class="nt">         "pageSize"</span><span class="s2">: 2,</span>
<span class="nt">         "pageNum"</span><span class="s2">: 1,</span>
<span class="nt">         "from"</span><span class="s2">: 0,</span>
<span class="nt">         "list"</span><span class="s2">: [</span>
<span class="nt">             {</span>
<span class="nt">                 "userId"</span><span class="s2">: 3,</span>
<span class="nt">                 "currencyId"</span><span class="s2">: 11,</span>
<span class="nt">                 "fundId"</span><span class="s2">: 6740243890479048704,</span>
<span class="nt">                 "freezeId"</span><span class="s2">: 0,</span>
<span class="nt">                 "type"</span><span class="s2">: 6,</span>
<span class="nt">                 "changeAmount"</span><span class="s2">: 1.1,</span>
<span class="nt">                 "feeRate"</span><span class="s2">: null,</span>
<span class="nt">                 "fee"</span><span class="s2">: null,</span>
<span class="nt">                 "operatorId"</span><span class="s2">: 12,</span>
<span class="nt">                 "beforeAmount"</span><span class="s2">: 13.3,</span>
<span class="nt">                 "beforeFreezeAmount"</span><span class="s2">: 1,</span>
<span class="nt">                 "marketId"</span><span class="s2">: 0,</span>
<span class="nt">                 "outsideId"</span><span class="s2">: "wdfsdfsdf1121211",</span>
<span class="nt">                 "id"</span><span class="s2">: 6740449817681471488,</span>
<span class="nt">                 "isIn"</span><span class="s2">: 1,</span>
<span class="nt">                 "available"</span><span class="s2">: 14.44,</span>
<span class="nt">                 "unit"</span><span class="s2">: "eth",</span>
<span class="nt">                 "createTime"</span><span class="s2">: 1607048468037,</span>
<span class="nt">                 "modifyTime"</span><span class="s2">: 0,</span>
<span class="nt">                 "extend"</span><span class="s2">: null</span>
<span class="nt">             }</span>
<span class="nt">            ...</span>
<span class="nt">         ]</span>
<span class="nt">     }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>currencyId         </td><td> <%=LANG('否')%>   </td><td> Long    </td><td> <%=LANG('币种')%>id                        </td></tr>
                    <tr><td>currencyName       </td><td> <%=LANG('否')%>   </td><td> String  </td><td> <%=LANG('币种名字')%>                      </td></tr>
                    <tr><td>type               </td><td> <%=LANG('否')%>   </td><td> Integer </td><td> <%=LANG('账单类型')%>                      </td></tr>
                    <tr><td>startTime          </td><td> <%=LANG('否')%>   </td><td> Long    </td><td> <%=LANG('开始时间戳')%>                    </td></tr>
                    <tr><td>endTime            </td><td> <%=LANG('否')%>   </td><td> Long    </td><td> <%=LANG('结束时间戳')%>                    </td></tr>
                    <tr><td>pageNum            </td><td> <%=LANG('否')%>   </td><td> Integer </td><td> <%=LANG('页码')%>                          </td></tr>
                    <tr><td>pageSize           </td><td> <%=LANG('否')%>   </td><td> Integer </td><td> <%=LANG('每页行数')%>，<%=LANG('默认')%>10              </td></tr>
                    <tr><td>futuresAccountType </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> 1:USDT<%=LANG('永续合约')%>  2：<%=LANG('币本位合约')%></td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="mpzniraalayrkoo"><%=LANG('查询账单类型信息')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/Fund/getBillType<span class="kd">List</span>
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">     "code"</span><span class="s2">: 10000,</span>
<span class="nt">     "data"</span><span class="s2">: [</span>
<span class="nt">         {</span>
<span class="nt">             "code"</span><span class="s2">: 1,</span>
<span class="nt">             "cnDesc"</span><span class="s2">: "<%=LANG('已实现盈亏')%>",</span>
<span class="nt">             "enDesc"</span><span class="s2">: "realized pnl"</span>
<span class="nt">         }</span>
<span class="nt">         ...</span>
<span class="nt">     ],</span>
<span class="nt">     "desc"</span><span class="s2">: "<%=LANG('操作成功')%>"</span>
<span class="nt"> }</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>code</td><td><%=LANG('账单类型')%></td></tr>
                    <tr><td>cnDesc</td><td><%=LANG('账单类型中文描述')%></td></tr>
                    <tr><td>enDesc</td><td><%=LANG('账单类型英文描述')%></td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="sqnygbxgxmxtmwj"><%=LANG('逐仓保证金变动历史')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- <%=LANG('使用位置')%>：<%=LANG('自动追加保证业务')%>，<%=LANG('用户手动调整保证金')%>
- URL: /Server/api/v2/Fund/marginHistory
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">   "code"</span><span class="s2">: 10000,</span>
<span class="nt">   "data"</span><span class="s2">: {</span>
<span class="nt">     "list"</span><span class="s2">: [</span>
<span class="nt">        {</span>
<span class="nt">          "symbol"</span><span class="s2">: "ETH_USDT",</span>
<span class="nt">          "asset"</span><span class="s2">: "usdt",</span>
<span class="nt">          "amount"</span><span class="s2">: "1.000000000000000",</span>
<span class="nt">          "type"</span><span class="s2">: 1,</span>
<span class="nt">          "isAuto"</span><span class="s2">: 0,</span>
<span class="nt">          "contractType"</span><span class="s2">: 1,</span>
<span class="nt">          "positionSide"</span><span class="s2">: "BOTH",</span>
<span class="nt">          "createTime"</span><span class="s2">: "1619062409274"</span>
<span class="nt">        }</span>
<span class="nt">        ...</span>
<span class="nt">      ],</span>
<span class="nt">        "pageNum"</span><span class="s2">: 1,</span>
<span class="nt">        "pageSize"</span><span class="s2">: 10</span>
<span class="nt">   },</span>
<span class="nt">   "desc"</span><span class="s2">: "<%=LANG('操作成功')%>"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>symbol    </td><td> <%=LANG('是')%>   </td><td> Long    </td><td> <%=LANG('市场')%>,<%=LANG('如')%> ETH_USDT                              </td></tr>
                    <tr><td>startTime </td><td> <%=LANG('否')%>   </td><td> Long    </td><td> <%=LANG('毫秒时间戳')%>                                    </td></tr>
                    <tr><td>endTime   </td><td> <%=LANG('否')%>   </td><td> Long    </td><td> <%=LANG('毫秒时间戳')%>                                    </td></tr>
                    <tr><td>type      </td><td> <%=LANG('否')%>   </td><td> Integer </td><td> <%=LANG('调整方向')%> 1: <%=LANG('增加逐仓保证金')%>，0: <%=LANG('减少逐仓保证金')%> </td></tr>
                    <tr><td>pageNum   </td><td> <%=LANG('否')%>   </td><td> Integer </td><td> <%=LANG('页码')%>，<%=LANG('默认')%>1                                   </td></tr>
                    <tr><td>pageSize  </td><td> <%=LANG('否')%>   </td><td> Integer </td><td> <%=LANG('页大小')%> <%=LANG('默认')%>10</td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>symbol</td><td><%=LANG('市场')%>，<%=LANG('如')%>ETH_USDT</td></tr>
                    <tr><td>asset</td><td><%=LANG('保证金币种')%>，<%=LANG('可能')%>1<%=LANG('个或者多个')%>，<%=LANG('如')%> USDT,ETH</td></tr>
                    <tr><td>isAuto</td><td><%=LANG('是否自动')%>，<%=LANG('默认否')%> 0，1<%=LANG('为是')%></td></tr>
                    <tr><td>contractType</td><td><%=LANG('合约类型')%></td></tr>
                    <tr><td>createTime</td><td><%=LANG('创建时间')%></td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="bkboslknipwyiwi"><%=LANG('仓位配置信息查询')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/setting/get
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">     "code"</span><span class="s2">: 10000,</span>
<span class="nt">     "desc"</span><span class="s2">: "success",</span>
<span class="nt">     "data"</span><span class="s2">: {</span>
<span class="nt">         "userId"</span><span class="s2">: 111,</span>
<span class="nt">         "marketId"</span><span class="s2">: 100,</span>
<span class="nt">         "leverage"</span><span class="s2">: 20,</span>
<span class="nt">         "marginMode"</span><span class="s2">: 1,</span>
<span class="nt">         "positionsMode"</span><span class="s2">: 2,</span>
<span class="nt">         "enableAutoAppend"</span><span class="s2">: 1,</span>
<span class="nt">         "maxAppendAmount"</span><span class="s2">: "11212",</span>
<span class="nt">          "marginCoins"</span><span class="s2">: "eth,qc",</span>
<span class="nt">         "id"</span><span class="s2">: 6737268451833817088,</span>
<span class="nt">         "createTime"</span><span class="s2">: 1606289971312,</span>
<span class="nt">         "modifyTime"</span><span class="s2">: 0,</span>
<span class="nt">         "extend"</span><span class="s2">: null</span>
<span class="nt">     }</span>
<span class="nt"> }</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>marketId           </td><td> <%=LANG('是')%>   </td><td> Long    </td><td> <%=LANG('市场')%>id                        </td></tr>
                    <tr><td>futuresAccountType </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> 1:USDT<%=LANG('永续合约')%>  2：<%=LANG('币本位合约')%> </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>userId</td><td><%=LANG('用户')%>id</td></tr>
                    <tr><td>marketId</td><td><%=LANG('市场')%>id</td></tr>
                    <tr><td>leverage</td><td><%=LANG('杠杠倍数')%></td></tr>
                    <tr><td>marginMode</td><td><%=LANG('保证金模式')%>：1<%=LANG('逐仓')%>（<%=LANG('默认')%>），2<%=LANG('全仓')%></td></tr>
                    <tr><td>id</td><td><%=LANG('仓位')%>id</td></tr>
                    <tr><td>maxAppendAmount</td><td><%=LANG('最多追加保证金')%>，<%=LANG('可能被修改')%>，<%=LANG('如果为')%>0<%=LANG('会关闭自动增加保证金')%></td></tr>
                    <tr><td>marginCoins</td><td><%=LANG('配置的按顺序冻结的保证金')%>，<%=LANG('如')%> eth,usdt,qc</td></tr>
                    <tr><td>createTime</td><td><%=LANG('创建时间')%></td></tr>
                    <tr><td>modifyTime</td><td><%=LANG('更新时间')%></td></tr>
                    <tr><td>extend</td><td><%=LANG('备用字段')%></td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="xqpskriwrvoronc"><%=LANG('查询用户资金')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/Fund/balance
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">:10000,</span>
<span class="nt">    "data"</span><span class="s2">:[</span>
<span class="nt">        {</span>
<span class="nt">            "userId"</span><span class="s2">:"6796980210517471232",</span>
<span class="nt">            "currencyId"</span><span class="s2">:"6",</span>
<span class="nt">            "currencyName"</span><span class="s2">:"usdt",</span>
<span class="nt">            "amount"</span><span class="s2">:"9894.07266456",</span>
<span class="nt">            "freezeAmount"</span><span class="s2">:"0",</span>
<span class="nt">            "id"</span><span class="s2">:"6796980210551171072",</span>
<span class="nt">            "createTime"</span><span class="s2">:"1620526363981",</span>
<span class="nt">            "accountBalance"</span><span class="s2">:"9894.07266456",</span>
<span class="nt">            "allUnrealizedPnl"</span><span class="s2">:"0",</span>
<span class="nt">            "allMargin"</span><span class="s2">:"0"</span>
<span class="nt">        }</span>
<span class="nt">        ...</span>
<span class="nt">    ],</span>
<span class="nt">    "desc"</span><span class="s2">:"<%=LANG('操作成功')%>"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>currencyId         </td><td> <%=LANG('否')%>   </td><td> String  </td><td> <%=LANG('币种')%>id                        </td></tr>
                    <tr><td>futuresAccountType </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> 1:USDT<%=LANG('永续合约')%>  2：<%=LANG('币本位合约')%> </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>userId</td><td><%=LANG('用户')%>id</td></tr>
                    <tr><td>currencyId</td><td><%=LANG('币种')%>id</td></tr>
                    <tr><td>currencyName</td><td><%=LANG('币种名字')%></td></tr>
                    <tr><td>amount</td><td><%=LANG('可用资产量')%></td></tr>
                    <tr><td>freezeAmount</td><td><%=LANG('冻结量')%></td></tr>
                    <tr><td>id</td><td><%=LANG('资金')%>id</td></tr>
                    <tr><td>accountBalance</td><td><%=LANG('账户余额')%></td></tr>
                    <tr><td>allUnrealizedPnl</td><td><%=LANG('账户未实现盈亏')%></td></tr>
                    <tr><td>allMargin</td><td><%=LANG('账户保证金')%></td></tr>
                    <tr><td>createTime</td><td><%=LANG('创建时间')%></td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="blhodajorshmham"><%=LANG('设置自动追加保证金')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/Positions/updateApp<span class="kd">end</span>USDValue
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: POST
{
    "maxAdditionalUSDValue":1212.12,
    "positionsId":123123123123,
    "futuresAccountType":1
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">   "code"</span><span class="s2">: 10000,</span>
<span class="nt">   "data"</span><span class="s2">: "6740243890479048704-674024389",</span>
<span class="nt">   "desc"</span><span class="s2">: "<%=LANG('操作成功')%>"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>positionsId           </td><td> <%=LANG('否')%>   </td><td> Long       </td><td> <%=LANG('仓位')%>ID                                            </td></tr>
                    <tr><td>maxAdditionalUSDValue </td><td> <%=LANG('是')%>   </td><td> BigDecimal </td><td> <%=LANG('设置增加的保证金数量')%>，<%=LANG('如果为')%>0<%=LANG('会关闭自动增加保证金')%> </td></tr>
                    <tr><td>futuresAccountType    </td><td> <%=LANG('是')%>   </td><td> Integer    </td><td> 1:USDT<%=LANG('永续合约')%>  2：<%=LANG('币本位合约')%></td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>data</td><td><%=LANG('本次操作的')%>clientId，<%=LANG('由秒时间戳')%>+<%=LANG('仓位')%>ID<%=LANG('组成')%></td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="utyfjgdxrzmgpmu"><%=LANG('设置保证金使用顺序')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/Positions/setMarginCoins
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: POST
{
    "marginCoins":"eth,usdt,qc",
    "marketId":101,
    "futuresAccountType":1
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt"><%=LANG('返回仓位对象信息')%></span>
<span class="nt">{</span>
<span class="nt">   "code"</span><span class="s2">: 10000,</span>
<span class="nt">   "data"</span><span class="s2">: {</span>
<span class="nt">     "id"</span><span class="s2">: "6793092825585035264",</span>
<span class="nt">     "positionsMode"</span><span class="s2">: 2,</span>
<span class="nt">     "userId"</span><span class="s2">: "6781470961192413204",</span>
<span class="nt">     "keyMark"</span><span class="s2">: "6781470961192413204-101-",</span>
<span class="nt">     "leverage"</span><span class="s2">: 1,</span>
<span class="nt">     "marginMode"</span><span class="s2">: 1,</span>
<span class="nt">     "marketId"</span><span class="s2">: "101",</span>
<span class="nt">     "enableAutoAppend"</span><span class="s2">: 1,</span>
<span class="nt">     "maxAppendAmount"</span><span class="s2">: "11212",</span>
<span class="nt">      "marginCoins"</span><span class="s2">: "eth,qc",</span>
<span class="nt">     "createTime"</span><span class="s2">: "1619599539181",</span>
<span class="nt">     "modifyTime"</span><span class="s2">: "1622112737137"</span>
<span class="nt">   },</span>
<span class="nt">   "desc"</span><span class="s2">: "<%=LANG('操作成功')%>"</span>
<span class="nt"> }</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>marketId           </td><td> <%=LANG('否')%>   </td><td> Long    </td><td> <%=LANG('市场')%>id<%=LANG('和市场名称必选其一')%>      </td></tr>
                    <tr><td>symbol             </td><td> <%=LANG('否')%>   </td><td> String  </td><td> <%=LANG('市场')%>id<%=LANG('和市场名称必选其一')%>      </td></tr>
                    <tr><td>marginCoins        </td><td> <%=LANG('是')%>   </td><td> String  </td><td> <%=LANG('设置保证金顺序')%>                </td></tr>
                    <tr><td>futuresAccountType </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> 1:USDT<%=LANG('永续合约')%>  2：<%=LANG('币本位合约')%> </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>enableAutoAppend	：	<%=LANG('是否开启自动追加保证金')%> 1</td><td><%=LANG('开启')%> 0 ：<%=LANG('不开启')%></td></tr>

                    </tbody>
                </table>
            </div>



            <h1 id="<%=LANG('合约交易')%>"><%=LANG('合约交易')%></h1>
            <h2 id="uiiatucsnhjkxdx"><%=LANG('下单')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/trade/order
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: POST

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">	"code"</span><span class="s2">: 10000,</span>
<span class="nt">	"desc"</span><span class="s2">: "success",</span>
<span class="nt">	"cnDesc"</span><span class="s2">: "<%=LANG('操作成功')%>",</span>
<span class="nt">	"data"</span><span class="s2">: "6747737516411133952"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('是否必须')%> </th><th> <%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>symbol        </td><td> String     </td><td> <%=LANG('是')%>       </td><td> <%=LANG('交易对')%>，<%=LANG('如')%>：BTC_USDT                                         </td></tr>
                    <tr><td>side          </td><td> int        </td><td> <%=LANG('是')%>       </td><td> 1:<%=LANG('开多')%><br>2:<%=LANG('开空')%><br>3:<%=LANG('平多')%><br>4:<%=LANG('平空')%>                      </td></tr>
                    <tr><td>action        </td><td> int        </td><td> <%=LANG('否')%>       </td><td> <%=LANG('委托动作')%> <br>1：<%=LANG('普通委托')%>，<%=LANG('即限价委托')%>，<%=LANG('默认值')%><br>3：IOC      </td></tr>
                    <tr><td>entrustType   </td><td> int        </td><td> <%=LANG('否')%>       </td><td> <%=LANG('委托类型')%>，<br>1：<%=LANG('限价委托')%>，<%=LANG('默认值')%>                            </td></tr>
                    <tr><td>amount        </td><td> BigDecimal </td><td> <%=LANG('是')%>       </td><td> <%=LANG('委托数量')%>                                                     </td></tr>
                    <tr><td>price         </td><td> BigDecimal </td><td> <%=LANG('是')%>       </td><td> <%=LANG('委托价格')%>                                                     </td></tr>
                    <tr><td>clientOrderId </td><td> String     </td><td> <%=LANG('否')%>       </td><td> <%=LANG('用户自定义的订单号')%>，<%=LANG('不可以重复出现在挂单中')%>。<%=LANG('必须满足正则规则')%> `^[a-zA-Z0-9-_]{1,36}$`</td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="dtvpeqyabfvprsa"><%=LANG('批量下单')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/trade/batchOrder
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: POST

[{"symbol":"ETH_USDT","amount":1,"side":1,"price":"1100","action":1,"entrustType":1},
{"symbol":"ETH_USDT","amount":1,"side":1,"price":"1000","action":1,"entrustType":1}]

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">: 10000, </span>
<span class="nt">    "data"</span><span class="s2">: [</span>
<span class="nt">        {</span>
<span class="nt">            "sCode"</span><span class="s2">: 1, </span>
<span class="nt">            "orderId"</span><span class="s2">: "6754725173120933888", </span>
<span class="nt">            "clientOrderId"</span><span class="s2">: "6754725172671948800", </span>
<span class="nt">            "sMsg"</span><span class="s2">: "success"</span>
<span class="nt">        }, </span>
<span class="nt">        {</span>
<span class="nt">            "sCode"</span><span class="s2">: 1, </span>
<span class="nt">            "orderId"</span><span class="s2">: "6754725173074796544", </span>
<span class="nt">            "clientOrderId"</span><span class="s2">: "6754725172676143104", </span>
<span class="nt">            "sMsg"</span><span class="s2">: "success"</span>
<span class="nt">        }</span>
<span class="nt">    ], </span>
<span class="nt">    "desc"</span><span class="s2">: "<%=LANG('操作成功')%>"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="fsuyldqceprmtav"><%=LANG('撤单')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/trade/cancelOrder
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: POST

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">: 10000,</span>
<span class="nt">    "desc"</span><span class="s2">: "success",</span>
<span class="nt">    "cnDesc"</span><span class="s2">: "<%=LANG('操作成功')%>",</span>
<span class="nt">    "data"</span><span class="s2">: "6747737516411133952"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('是否必须')%> </th><th> <%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>symbol        </td><td> String </td><td> <%=LANG('是')%>       </td><td> <%=LANG('交易对')%>，<%=LANG('如')%>：BTC_USDT </td></tr>
                    <tr><td>orderId       </td><td> long   </td><td> <%=LANG('否')%>       </td><td> <%=LANG('订单')%>ID               </td></tr>
                    <tr><td>clientOrderId </td><td> String </td><td> <%=LANG('否')%>       </td><td> <%=LANG('自定义订单')%>ID </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="bsehutixcpovxcf"><%=LANG('批量撤单')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/trade/batchCancelOrder
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: POST
{
  "symbol": "ETH_USDT",
  "orderIds": [6747737380100448256, 6747737516411133952]
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt"><%=LANG('若取消失败则会列出失败的明细')%></span>
<span class="nt">{</span>
<span class="nt">    "cnDesc"</span><span class="s2">: "<%=LANG('操作成功')%>",</span>
<span class="nt">    "code"</span><span class="s2">: 10000,</span>
<span class="nt">    "data"</span><span class="s2">: [</span>
<span class="nt">        {</span>
<span class="nt">            "cnDesc"</span><span class="s2">: "<%=LANG('订单不存在')%>",</span>
<span class="nt">            "code"</span><span class="s2">: 12011,</span>
<span class="nt">            "data"</span><span class="s2">: 6747737380100448000,</span>
<span class="nt">            "desc"</span><span class="s2">: "order not exists"</span>
<span class="nt">        },</span>
<span class="nt">        ...</span>
<span class="nt">    ],</span>
<span class="nt">    "desc"</span><span class="s2">: "success"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('是否必须')%> </th><th> <%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>symbol         </td><td> String </td><td> <%=LANG('是')%>       </td><td> <%=LANG('交易对')%>，<%=LANG('如')%>：BTC_USDT </td></tr>
                    <tr><td>orderIds       </td><td> List   </td><td> <%=LANG('否')%>       </td><td> <%=LANG('订单')%>ID<%=LANG('列表')%>           </td></tr>
                    <tr><td>clientOrderIds </td><td> List   </td><td> <%=LANG('否')%>       </td><td> <%=LANG('自定义订单')%>ID<%=LANG('列表')%></td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="xuifanwakavbbmm"><%=LANG('全部撤单')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/trade/cancelAllOrders
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: POST

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">: 10000,</span>
<span class="nt">    "data"</span><span class="s2">: [ ],</span>
<span class="nt">    "desc"</span><span class="s2">: "success"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('是否必须')%> </th><th> <%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>symbol </td><td> String </td><td> <%=LANG('是')%> </td><td> <%=LANG('交易对')%>，<%=LANG('如')%>：BTC_USDT</td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="ptqeanrbtcxhmbr"><%=LANG('查询当前全部挂单')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/trade/getUndoneOrders
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">: 10000,</span>
<span class="nt">    "data"</span><span class="s2">: {</span>
<span class="nt">        "list"</span><span class="s2">: [</span>
<span class="nt">            {</span>
<span class="nt">                "action"</span><span class="s2">: 1,</span>
<span class="nt">                "amount"</span><span class="s2">: "1",</span>
<span class="nt">                "availableAmount"</span><span class="s2">: "1",</span>
<span class="nt">                "availableValue"</span><span class="s2">: "600",</span>
<span class="nt">                "avgPrice"</span><span class="s2">: "0",</span>
<span class="nt">                "canCancel"</span><span class="s2">: true,</span>
<span class="nt">                "cancelStatus"</span><span class="s2">: 20,</span>
<span class="nt">                "createTime"</span><span class="s2">: 1608814053726,</span>
<span class="nt">                "entrustType"</span><span class="s2">: 1,</span>
<span class="nt">                "id"</span><span class="s2">: "6747855220799382000",</span>
<span class="nt">                "leverage"</span><span class="s2">: 20,</span>
<span class="nt">                "marketId"</span><span class="s2">: 101,</span>
<span class="nt">                "modifyTime"</span><span class="s2">: 1608814053760,</span>
<span class="nt">                "orderCode"</span><span class="s2">: "1608814052115",</span>
<span class="nt">                "price"</span><span class="s2">: "600",</span>
<span class="nt">                "showStatus"</span><span class="s2">: 1,</span>
<span class="nt">                "side"</span><span class="s2">: 1,</span>
<span class="nt">                "sourceType"</span><span class="s2">: 1,</span>
<span class="nt">                "status"</span><span class="s2">: 12,</span>
<span class="nt">                "tradeAmount"</span><span class="s2">: "0",</span>
<span class="nt">                "tradeValue"</span><span class="s2">: "0",</span>
<span class="nt">                "type"</span><span class="s2">: 1,</span>
<span class="nt">                "userId"</span><span class="s2">: 1,</span>
<span class="nt">                "value"</span><span class="s2">: "600"</span>
<span class="nt">            }</span>
<span class="nt">        ],</span>
<span class="nt">        "pageNum"</span><span class="s2">: 1,</span>
<span class="nt">        "pageSize"</span><span class="s2">: 10</span>
<span class="nt">    },</span>
<span class="nt">    "desc"</span><span class="s2">: "success"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('是否必须')%> </th><th> <%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>symbol   </td><td> String </td><td> <%=LANG('是')%>       </td><td> <%=LANG('交易对')%>，<%=LANG('如')%>：BTC_USDT                              </td></tr>
                    <tr><td>pageNum  </td><td> INT    </td><td> <%=LANG('否')%>       </td><td> <%=LANG('页码')%>，<%=LANG('从')%>1<%=LANG('开始')%>，<%=LANG('默认是')%>1                            </td></tr>
                    <tr><td>pageSize </td><td> INT    </td><td> <%=LANG('否')%>       </td><td> <%=LANG('分页返回的结果集数量')%>，<%=LANG('最大为')%>100，<%=LANG('不填默认返回')%>30<%=LANG('条')%> </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>type	：	<%=LANG('委托类型')%></td><td>-1 <%=LANG('卖')%>, 1 <%=LANG('买')%></td></tr>
                    <tr><td>action	：	<%=LANG('委托动作')%></td><td>1 <%=LANG('限价')%>, 2 <%=LANG('市价')%>, 3 IOC, 4 <%=LANG('只做')%> maker, 5 FOK</td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="wgycthdeddqrphm"><%=LANG('查询所有订单')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL:  /Server/api/v2/trade/getAllOrders
- <%=LANG('请注意')%>，<%=LANG('如果订单满足如下条件')%>，<%=LANG('不会被查询到')%>：
- <%=LANG('订单的最终状态为已取消')%>,<%=LANG('并且')%>
- <%=LANG('订单没有任何的成交记录')%>,<%=LANG('并且')%>
- <%=LANG('订单生成时间')%> + 7<%=LANG('天')%> &lt; <%=LANG('当前时间')%>
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">: 10000,</span>
<span class="nt">    "data"</span><span class="s2">: {</span>
<span class="nt">        "list"</span><span class="s2">: [</span>
<span class="nt">            {</span>
<span class="nt">                "action"</span><span class="s2">: 1,</span>
<span class="nt">                "amount"</span><span class="s2">: "1",</span>
<span class="nt">                "availableAmount"</span><span class="s2">: "1",</span>
<span class="nt">                "availableValue"</span><span class="s2">: "613",</span>
<span class="nt">                "avgPrice"</span><span class="s2">: "0",</span>
<span class="nt">                "canCancel"</span><span class="s2">: false,</span>
<span class="nt">                "cancelStatus"</span><span class="s2">: 23,</span>
<span class="nt">                "createTime"</span><span class="s2">: 1608879733642,</span>
<span class="nt">                "entrustType"</span><span class="s2">: 1,</span>
<span class="nt">                "id"</span><span class="s2">: "6748130702333780000",</span>
<span class="nt">                "leverage"</span><span class="s2">: 20,</span>
<span class="nt">                "marketId"</span><span class="s2">: 101,</span>
<span class="nt">                "modifyTime"</span><span class="s2">: 1608881828525,</span>
<span class="nt">                "orderCode"</span><span class="s2">: "1608879732629",</span>
<span class="nt">                "price"</span><span class="s2">: "613",</span>
<span class="nt">                "showStatus"</span><span class="s2">: 5,</span>
<span class="nt">                "side"</span><span class="s2">: 1,</span>
<span class="nt">                "sourceType"</span><span class="s2">: 6,</span>
<span class="nt">                "status"</span><span class="s2">: 12,</span>
<span class="nt">                "tradeAmount"</span><span class="s2">: "0",</span>
<span class="nt">                "tradeValue"</span><span class="s2">: "0",</span>
<span class="nt">                "type"</span><span class="s2">: 1,</span>
<span class="nt">                "userId"</span><span class="s2">: 1,</span>
<span class="nt">                "value"</span><span class="s2">: "613"</span>
<span class="nt">            },</span>
<span class="nt">            ...</span>
<span class="nt">        ],</span>
<span class="nt">        "pageNum"</span><span class="s2">: 1,</span>
<span class="nt">        "pageSize"</span><span class="s2">: 2</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('是否必须')%> </th><th> <%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>symbol    </td><td> String </td><td> <%=LANG('是')%>       </td><td> <%=LANG('交易对')%>，<%=LANG('如')%>：BTC_USDT                              </td></tr>
                    <tr><td>startTime </td><td> LONG   </td><td> <%=LANG('否')%>       </td><td> <%=LANG('起始时间')%>                                          </td></tr>
                    <tr><td>endTime   </td><td> LONG   </td><td> <%=LANG('否')%>       </td><td> <%=LANG('结束时间')%>                                          </td></tr>
                    <tr><td>pageNum   </td><td> INT    </td><td> <%=LANG('否')%>       </td><td> <%=LANG('页码')%>，<%=LANG('从')%>1<%=LANG('开始')%>，<%=LANG('默认是')%>1                           </td></tr>
                    <tr><td>pageSize  </td><td> INT    </td><td> <%=LANG('否')%>       </td><td> <%=LANG('分页返回的结果集数量')%>，<%=LANG('最大为')%>100，<%=LANG('不填默认返回')%>30<%=LANG('条')%></td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="vjcvnqdsklbxcgf"><%=LANG('订单信息')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/trade/getOrder
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">: 10000,</span>
<span class="nt">    "data"</span><span class="s2">: {</span>
<span class="nt">        "action"</span><span class="s2">: 1,</span>
<span class="nt">        "amount"</span><span class="s2">: "1",</span>
<span class="nt">        "availableAmount"</span><span class="s2">: "1",</span>
<span class="nt">        "availableValue"</span><span class="s2">: "613",</span>
<span class="nt">        "avgPrice"</span><span class="s2">: "0",</span>
<span class="nt">        "canCancel"</span><span class="s2">: false,</span>
<span class="nt">        "cancelStatus"</span><span class="s2">: 23,</span>
<span class="nt">        "createTime"</span><span class="s2">: 1608879733642,</span>
<span class="nt">        "entrustType"</span><span class="s2">: 1,</span>
<span class="nt">        "id"</span><span class="s2">: "6748130702333780000",</span>
<span class="nt">        "leverage"</span><span class="s2">: 20,</span>
<span class="nt">        "marketId"</span><span class="s2">: 101,</span>
<span class="nt">        "modifyTime"</span><span class="s2">: 1608881828525,</span>
<span class="nt">        "orderCode"</span><span class="s2">: "1608879732629",</span>
<span class="nt">        "price"</span><span class="s2">: "613",</span>
<span class="nt">        "showStatus"</span><span class="s2">: 5,</span>
<span class="nt">        "side"</span><span class="s2">: 1,</span>
<span class="nt">        "sourceType"</span><span class="s2">: 6,</span>
<span class="nt">        "status"</span><span class="s2">: 12,</span>
<span class="nt">        "tradeAmount"</span><span class="s2">: "0",</span>
<span class="nt">        "tradeValue"</span><span class="s2">: "0",</span>
<span class="nt">        "type"</span><span class="s2">: 1,</span>
<span class="nt">        "userId"</span><span class="s2">: 1,</span>
<span class="nt">        "value"</span><span class="s2">: "613"</span>
<span class="nt">    },</span>
<span class="nt">    "desc"</span><span class="s2">: "success"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('是否必须')%> </th><th> <%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>symbol        </td><td> String </td><td> <%=LANG('是')%> </td><td> <%=LANG('交易对')%>，<%=LANG('如')%>：BTC_USDT </td></tr>
                    <tr><td>orderId       </td><td> long   </td><td> <%=LANG('否')%> </td><td> <%=LANG('订单')%>ID               </td></tr>
                    <tr><td>clientOrderId </td><td> String </td><td> <%=LANG('否')%> </td><td> <%=LANG('自定义订单')%>ID</td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="eclmhkyshgoomdi"><%=LANG('订单成交明细')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/trade/getTrade<span class="kd">List</span>
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">: 10000, </span>
<span class="nt">    "data"</span><span class="s2">: {</span>
<span class="nt">        "list"</span><span class="s2">: [</span>
<span class="nt">            {</span>
<span class="nt">                "amount"</span><span class="s2">: "0.001", </span>
<span class="nt">                "createTime"</span><span class="s2">: "1614708954563", </span>
<span class="nt">                "feeAmount"</span><span class="s2">: "0.00060286", </span>
<span class="nt">                "feeCurrency"</span><span class="s2">: "USDT", </span>
<span class="nt">                "maker"</span><span class="s2">: false, </span>
<span class="nt">                "orderId"</span><span class="s2">: "6772580218407231488", </span>
<span class="nt">                "price"</span><span class="s2">: "1507.14", </span>
<span class="nt">                "relizedPnl"</span><span class="s2">: "0", </span>
<span class="nt">                "side"</span><span class="s2">: 1, </span>
<span class="nt">                "userId"</span><span class="s2">: "6755742981778581504"</span>
<span class="nt">            }, </span>
<span class="nt">            ...</span>
<span class="nt">        ], </span>
<span class="nt">        "pageNum"</span><span class="s2">: 1, </span>
<span class="nt">        "pageSize"</span><span class="s2">: 10</span>
<span class="nt">    }, </span>
<span class="nt">    "desc"</span><span class="s2">: "<%=LANG('操作成功')%>"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('是否必须')%> </th><th> <%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>symbol   </td><td> String </td><td> <%=LANG('是')%>       </td><td> <%=LANG('交易对')%>，<%=LANG('如')%>：BTC_USDT                    </td></tr>
                    <tr><td>orderId  </td><td> long   </td><td> <%=LANG('是')%>       </td><td> <%=LANG('订单')%>ID                                  </td></tr>
                    <tr><td>pageNum  </td><td> int    </td><td> <%=LANG('否')%>       </td><td> <%=LANG('分页页码')%>，<%=LANG('不填默认')%>1                     </td></tr>
                    <tr><td>pageSize </td><td> int    </td><td> <%=LANG('否')%>       </td><td> <%=LANG('分页返回结果集数量')%>，<%=LANG('不填默认')%>10，<%=LANG('最大')%>100 </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="hvclqommupwgtzg"><%=LANG('查询历史成交记录')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/trade/tradeHistory
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: GET

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "cnDesc"</span><span class="s2">: "<%=LANG('操作成功')%>",</span>
<span class="nt">    "code"</span><span class="s2">: 10000,</span>
<span class="nt">    "data"</span><span class="s2">: {</span>
<span class="nt">        "list"</span><span class="s2">: [</span>
<span class="nt">            {</span>
<span class="nt">                "amount"</span><span class="s2">: "1",</span>
<span class="nt">                "createTime"</span><span class="s2">: 1608862284859,</span>
<span class="nt">                "feeAmount"</span><span class="s2">: "0.01224",</span>
<span class="nt">                "feeCurrency"</span><span class="s2">: "USDT",</span>
<span class="nt">                "maker"</span><span class="s2">: false,</span>
<span class="nt">                "orderId"</span><span class="s2">: "6748057516749562000",</span>
<span class="nt">                "price"</span><span class="s2">: "612",</span>
<span class="nt">                "relizedPnl"</span><span class="s2">: "0",</span>
<span class="nt">                "side"</span><span class="s2">: 2,</span>
<span class="nt">                "userId"</span><span class="s2">: 1</span>
<span class="nt">            },</span>
<span class="nt">            ...</span>
<span class="nt">        ],</span>
<span class="nt">        "pageNum"</span><span class="s2">: 1,</span>
<span class="nt">        "pageSize"</span><span class="s2">: 2</span>
<span class="nt">    },</span>
<span class="nt">    "desc"</span><span class="s2">: "success"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>symbol    </td><td> <%=LANG('是')%>   </td><td> String  </td><td> <%=LANG('合约')%>，<%=LANG('即市场交易对唯一标识符')%>，<%=LANG('如')%>：BTC_USDT           </td></tr>
                    <tr><td>startTime </td><td> <%=LANG('否')%>   </td><td> Long    </td><td> <%=LANG('开始时间')%>，Unix<%=LANG('时间戳的毫秒数格式')%>，<%=LANG('如')%> `1608862284859` </td></tr>
                    <tr><td>endTime   </td><td> <%=LANG('否')%>   </td><td> Long    </td><td> <%=LANG('结束时间')%>，Unix<%=LANG('时间戳的毫秒数格式')%>，<%=LANG('如')%> `1608862284859` </td></tr>
                    <tr><td>pageNum   </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> <%=LANG('页码')%>，<%=LANG('从')%>1<%=LANG('开始')%>                                        </td></tr>
                    <tr><td>pageSize  </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> <%=LANG('分页返回结果集数量')%>，<%=LANG('不填默认')%>10，<%=LANG('最大')%>100              </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="pwuzyvoxmgkzwey"><%=LANG('委托策略下单')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/trade/orderAlgo
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: POST

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">: 10000, </span>
<span class="nt">    "data"</span><span class="s2">: "6819520763146739712", </span>
<span class="nt">    "desc"</span><span class="s2">: "<%=LANG('操作成功')%>"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>symbol    </td><td> <%=LANG('是')%>   </td><td> String  </td><td> <%=LANG('合约')%>，<%=LANG('即市场交易对唯一标识符')%>，<%=LANG('如')%>：BTC_USDT                   </td></tr>
                    <tr><td>side      </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> 1:<%=LANG('开多')%>(<%=LANG('计划委托')%>)，2:<%=LANG('开空')%>(<%=LANG('计划委托')%>)，3:<%=LANG('平多')%>(<%=LANG('止盈止损')%>)，4:<%=LANG('平空')%>(<%=LANG('止盈止损')%>) </td></tr>
                    <tr><td>orderType </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> 1：<%=LANG('计划委托')%>，2：<%=LANG('止盈止损')%>                              </td></tr>
                    <tr><td>amount    </td><td> <%=LANG('是')%>   </td><td> Decimal </td><td> <%=LANG('数量')%>        </td></tr>
                    <tr><td><%=LANG('计划委托参数')%> </td><td> </td><td> </td><td> </td></tr>
                    <tr><td>triggerPrice </td><td> <%=LANG('是')%>   </td><td> Decimal </td><td> <%=LANG('触发价格')%>，<%=LANG('填写值')%>0\<x\<=1000000 < td></x\<=1000000></td></tr>
                    <tr><td>algoPrice    </td><td> <%=LANG('是')%>   </td><td> Decimal </td><td> <%=LANG('委托价格')%>，<%=LANG('填写值')%>0\<x\<=1000000 < td></x\<=1000000></td></tr>
                    <tr><td><%=LANG('止盈止损参数')%> </td><td> </td><td> </td><td> </td></tr>
                    <tr><td>triggerPrice </td><td> <%=LANG('是')%>   </td><td> Decimal </td><td> <%=LANG('触发价格')%>，<%=LANG('填写值')%>0\<x\<=1000000 < td></x\<=1000000></td></tr>
                    <tr><td>priceType    </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> 1:<%=LANG('标记价格')%>，2:<%=LANG('最新价格')%>  </td></tr>
                    <tr><td>algoPrice    </td><td> <%=LANG('是')%>   </td><td> Decimal </td><td> <%=LANG('委托价格')%>，<%=LANG('填写值')%>0\<x\<=1000000 < td></x\<=1000000></td></tr>
                    <tr><td>bizType      </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> 1:<%=LANG('止盈')%>，2:<%=LANG('止损')%>                                                       </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="iestlwrnlikxjuz"><%=LANG('委托策略撤单')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/trade/cancelAlgos
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: POST

<%=LANG('单个撤单')%>：`POST /Server/app/v1/trade/cancelAlgos{"symbol":"BTC_USDT", "ids":[6819506476072247296]}`

<%=LANG('批量撤单')%>：`POST /Server/app/v1/trade/cancelAlgos{"symbol":"BTC_USDT","ids":[6819506476072247296,6819506476072247297]}`

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt"># <%=LANG('取消成功')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">: 10000, </span>
<span class="nt">    "data"</span><span class="s2">: [ ], </span>
<span class="nt">    "desc"</span><span class="s2">: "<%=LANG('操作成功')%>"</span>
<span class="nt">}</span>
<span class="nt"></span>
<span class="nt"># <%=LANG('取消失败')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">: 10000, </span>
<span class="nt">    "data"</span><span class="s2">: [</span>
<span class="nt">        {</span>
<span class="nt">            "code"</span><span class="s2">: 12201, </span>
<span class="nt">            "data"</span><span class="s2">: "6819506476072247296", </span>
<span class="nt">            "desc"</span><span class="s2">: "<%=LANG('委托策略不存在')%>"</span>
<span class="nt">        }</span>
<span class="nt">    ], </span>
<span class="nt">    "desc"</span><span class="s2">: "<%=LANG('操作成功')%>"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>symbol </td><td> <%=LANG('是')%>   </td><td> String       </td><td> <%=LANG('合约')%>，<%=LANG('即市场交易对唯一标识符')%>，<%=LANG('如')%>：BTC_USDT </td></tr>
                    <tr><td>ids    </td><td> <%=LANG('是')%>   </td><td> List<string> </string></td><td> <%=LANG('撤销指定的委托单')%>ID                         </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="ijeneqavlevqmhv"><%=LANG('委托策略查询')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
- URL: /Server/api/v2/trade/getOrderAlgos
- <%=LANG('接口类型')%>: Http
- <%=LANG('请求类型')%>: POST

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "code"</span><span class="s2">: 10000, </span>
<span class="nt">    "data"</span><span class="s2">: {</span>
<span class="nt">        "list"</span><span class="s2">: [</span>
<span class="nt">            {</span>
<span class="nt">                "algoPrice"</span><span class="s2">: "2050", </span>
<span class="nt">                "amount"</span><span class="s2">: "0.5", </span>
<span class="nt">                "bizType"</span><span class="s2">: 1, </span>
<span class="nt">                "canCancel"</span><span class="s2">: true, </span>
<span class="nt">                "createTime"</span><span class="s2">: "1625898596847", </span>
<span class="nt">                "id"</span><span class="s2">: "6819512988349964288", </span>
<span class="nt">                "leverage"</span><span class="s2">: 20, </span>
<span class="nt">                "marketId"</span><span class="s2">: "101", </span>
<span class="nt">                "modifyTime"</span><span class="s2">: "1625898596847", </span>
<span class="nt">                "orderType"</span><span class="s2">: 1, </span>
<span class="nt">                "priceType"</span><span class="s2">: 1, </span>
<span class="nt">                "side"</span><span class="s2">: 1, </span>
<span class="nt">                "sourceType"</span><span class="s2">: 4, </span>
<span class="nt">                "status"</span><span class="s2">: 1, </span>
<span class="nt">                "triggerPrice"</span><span class="s2">: "2100", </span>
<span class="nt">                "triggerTime"</span><span class="s2">: "0", </span>
<span class="nt">                "userId"</span><span class="s2">: "6755742981778581504"</span>
<span class="nt">            }, </span>
<span class="nt">            ...</span>
<span class="nt">        ], </span>
<span class="nt">        "pageNum"</span><span class="s2">: 1, </span>
<span class="nt">        "pageSize"</span><span class="s2">: 10</span>
<span class="nt">    }, </span>
<span class="nt">    "desc"</span><span class="s2">: "<%=LANG('操作成功')%>"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>symbol    </td><td> <%=LANG('是')%>   </td><td> String  </td><td> <%=LANG('合约')%>，<%=LANG('即市场交易对唯一标识符')%>，<%=LANG('如')%>：BTC_USDT                   </td></tr>
                    <tr><td>side      </td><td> <%=LANG('否')%>   </td><td> Integer </td><td> `1`:<%=LANG('开多')%>(<%=LANG('计划委托')%>)<br>`2`:<%=LANG('开空')%>(<%=LANG('计划委托')%>)<br>`3`:<%=LANG('平多')%>(<%=LANG('止盈止损')%>)<br>`4`:<%=LANG('平空')%>(<%=LANG('止盈止损')%>) </td></tr>
                    <tr><td>orderType </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> `1`：<%=LANG('计划委托')%><br>`2`：<%=LANG('止盈止损')%>                              </td></tr>
                    <tr><td>bizType   </td><td> <%=LANG('否')%>   </td><td> Integer </td><td> <%=LANG('针对止盈止损')%><br>`1`:<%=LANG('止盈')%><br>`2`:<%=LANG('止损')%>                       </td></tr>
                    <tr><td>status    </td><td> <%=LANG('否')%>   </td><td> Integer </td><td> **<%=LANG('针对计划委托')%>**<br>`1`:<%=LANG('等待委托')%><br>`2`:<%=LANG('已取消')%><br>`3`:<%=LANG('已委托')%><br>`4`:<%=LANG('委托失败')%><br>`5`<%=LANG('已完成')%><br>**<%=LANG('针对止盈止损')%>**<br>`1`:<%=LANG('未触发')%><br>`2`:<%=LANG('已取消')%><br>`3`:<%=LANG('触发成功')%><br>`4`:<%=LANG('触发失败')%><br>`5`<%=LANG('已完成')%> </td></tr>
                    <tr><td>startTime </td><td> <%=LANG('否')%>   </td><td> Long    </td><td> <%=LANG('开始时间')%>                                                     </td></tr>
                    <tr><td>endTime   </td><td> <%=LANG('否')%>   </td><td> Long    </td><td> <%=LANG('结束时间')%>                                                     </td></tr>
                    <tr><td>pageNum   </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> <%=LANG('页码')%>，<%=LANG('从')%>1<%=LANG('开始')%>                                                </td></tr>
                    <tr><td>pageSize  </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> <%=LANG('分页大小')%>，<%=LANG('默认')%>10                                             </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>




            <h1 id="WebSocket API">WebSocket API</h1>

            <p><%=LANG('接口类型')%>: WebSocket
                URL: wss://futures.zb.land/ws/private/api/v2
                <%=LANG('请求参数使用')%>json<%=LANG('编码')%></p>

            <p><strong><%=LANG('每个请求都必须有的参数')%></strong></p>

            <ul>
                <li><%=LANG('参数名称')%> | <%=LANG('必选')%> | <%=LANG('类型')%> | <%=LANG('说明')%></li>
                <li>---|---|---|---</li>
                <li>action  | <%=LANG('是')%>   | String | subscribe:<%=LANG('订阅')%>，unSubscribe:<%=LANG('取消订阅')%>，login:<%=LANG('登录')%></li>
                <li>channel | <%=LANG('是')%>   | String | <%=LANG('频道')%>，<%=LANG('代表不同的订阅内容')%> <br></li>
            </ul>

            <h2 id="<%=LANG('登录签名规则')%>"><%=LANG('登录')%></h2>

            <p><%=LANG('建立连接后')%>，<%=LANG('需要先登录')%>，<%=LANG('才能进行频道订阅')%>。<%=LANG('以后的频道订阅时')%>，<%=LANG('就不需要带上')%>ZB-APIKEY，ZB-TIMESTAMP<%=LANG('和')%>ZB-SIGN。</p>

            <p><strong><%=LANG('请求参数')%></strong></p>

            <ul>
                <li><%=LANG('参数名称')%> | <%=LANG('必选')%> | <%=LANG('类型')%> | <%=LANG('说明')%></li>
                <li>---|---|---|---</li>
                <li>action       | <%=LANG('是')%>   | String | login:<%=LANG('登录')%> <br></li>
                <li>ZB-APIKEY    | <%=LANG('是')%>   | String | <%=LANG('由')%>zb<%=LANG('平台生成用户的')%>api key <br></li>
                <li>ZB-TIMESTAMP | <%=LANG('是')%>   | String | <%=LANG('请求时间')%>，<%=LANG('为')%>ISO<%=LANG('格式')%>，<%=LANG('如')%>`2021-01-05T14:05:28.616Z</li>
                <li>ZB-SIGN      | <%=LANG('是')%>   | String | <%=LANG('签名')%></li>
            </ul>

            <p><strong><%=LANG('请求示例')%></strong>
                {
                "action": "login",
                "ZB-APIKEY":"a55caded-eef9-426b-af7c-faf53c78e2ae",
                "ZB-TIMESTAMP":"2021-01-22T02:08:54.312Z",
                "ZB-SIGN":"flsToYwO39sGJ8Pp6gAfIOsUBLLRa3F3daDcYqddGKc="
                }</p>

            <p><strong><%=LANG('成功响应格式')%></strong>
                {
                "action":"login",
                "data": "success"
                }</p>

            <h2 id="<%=LANG('登录签名规则')%>"><%=LANG('签名规则')%></h2>

            <ul>
                <li><p><%=LANG('服务器对发起的请求进行签名检验')%>，<%=LANG('确认请求来源')%>；</p></li>
                <li><p><%=LANG('请勿将')%>secretKey<%=LANG('在请求或响应中传输')%>；</p></li>
                <li><p>ZB-SIGN<%=LANG('字段是对')%><code>timestamp</code> + <code>"GET"</code>  + <code>login</code>(+<%=LANG('表示字符串连接')%>)，<%=LANG('以及')%>SecretKey，<%=LANG('使用')%>HMAC SHA256<%=LANG('方法加密')%>，<%=LANG('通过')%>Base64<%=LANG('编码输出而得到的')%>；</p>

                    <p><%=LANG('如')%>：<code>sign=CryptoJS.enc.Base64.Stringify(CryptoJS.HmacSHA256(timestamp + 'GET' + 'login', SecretKey))</code></p>

                    <p><%=LANG('其中')%>，<code>timestamp</code><%=LANG('的值与')%><code>ZB-TIMESTAMP</code><%=LANG('请求头相同')%>，<%=LANG('为')%>ISO<%=LANG('格式')%>，<%=LANG('如')%><code>2021-01-05T14:05:28.616Z</code>。</p>

                    <p>SecretKey<%=LANG('为用户申请')%>APIKey<%=LANG('时所生成')%>，<%=LANG('需用')%>sha1<%=LANG('加密')%>。<%=LANG('如')%>：<code>ceb892e0-0367-4cc1-88d1-ef9289feb053</code>，<%=LANG('加密')%>SecretKey<%=LANG('得到')%>：c9a206b430d6c6a43322a05806acb5f9514ac488</p>

                    <p><%=LANG('在线加密工具')%>: http://tool.oschina.net/encrypt?type=2</p></li>
            </ul>

            <h1 id="<%=LANG('公共行情')%>"><%=LANG('公共行情')%></h1>
            <h2 id="sukzbsjgwevmpfe"><%=LANG('订阅')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"BTC_USDT.KLine_15M",
  "data":					//<%=LANG('不同的')%>channel，data<%=LANG('会不一样')%>
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">  "channel"</span><span class="s2">:"BTC_USDT.KLine_15M",</span>
<span class="nt">  "errorCode"</span><span class="s2">: ,</span>
<span class="nt">  "errorMsg":</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="lncqjocbptyvrmo"><%=LANG('取消订阅')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"BTC_USDT.KLine_15M"
}



</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('是否必须')%> </th><th> <%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>action  </td><td> String </td><td> <%=LANG('是')%>       </td><td> unsubscribe                                                  </td></tr>
                    <tr><td>channel </td><td> String </td><td> <%=LANG('是')%>       </td><td> <%=LANG('频道')%><br><%=LANG('格式')%>: <%=LANG('市场名称')%>.<%=LANG('数据类型')%><br><%=LANG('盘口')%>:  BTC_USDT.Depth<br><%=LANG('成交')%>:  BTC_USDT.Trade<br>k<%=LANG('线')%>： BTC_USDT.1M, <%=LANG('可选范围')%>:1M,5M,15M, 30M, 1H, 6H, 1D, 5D </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="oqdiyihwmtdmpiu"><%=LANG('全量深度')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
<%=LANG('更新频率')%>：200ms<%=LANG('一次')%>
{
	"action": "subscribe",
	"channel": "BTC_USDT.DepthWhole@0.01",	//<%=LANG('全量')%>5<%=LANG('档深度')%>，@<%=LANG('后面是指盘口精度')%>。<%=LANG('如果没有')%>@<%=LANG('精度')%>，<%=LANG('则当作默认精度')%>(<%=LANG('精度列表的第一个')%>)
	"size": 5
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt"><%=LANG('买盘是以价格降序排序')%>，<%=LANG('卖盘是以价格升序排列')%></span>
<span class="nt">{</span>
<span class="nt">  "channel"</span><span class="s2">: "BTC_USDT.DepthWhole@0.01",</span>
<span class="nt">	"data"：{</span>
<span class="nt">    "asks"</span><span class="s2">:[					 //<%=LANG('卖盘')%></span>
<span class="nt">      [</span>
<span class="nt">        16146.91,				//<%=LANG('价格')%></span>
<span class="nt">        0.029267				//<%=LANG('数量')%></span>
<span class="nt">      ],</span>
<span class="nt">      [</span>
<span class="nt">        16146.93,</span>
<span class="nt">        0.129334</span>
<span class="nt">      ],</span>
<span class="nt">      ......</span>
<span class="nt">    ],</span>
<span class="nt">    "bids"</span><span class="s2">:[							//<%=LANG('买盘')%></span>
<span class="nt">      [</span>
<span class="nt">        16131.41</span>
<span class="nt">        8.866436</span>
<span class="nt">      ],</span>
<span class="nt">      [</span>
<span class="nt">        16131.36,</span>
<span class="nt">        2</span>
<span class="nt">      ],</span>
<span class="nt">      ......</span>
<span class="nt">    ]</span>
<span class="nt">	}</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="wppnlwcsmoukewj"><%=LANG('增量深度')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
<%=LANG('每隔')%>5<%=LANG('分钟更新一次全量深度')%>。<%=LANG('客户端收到全量时')%>，<%=LANG('直接替换本地的深度表')%>
<%=LANG('更新频率')%>：<%=LANG('实时')%>。<%=LANG('客户端收到增量时')%>，<%=LANG('需用增量数据来更新本地的深度表')%>
size<%=LANG('为空时')%>，<%=LANG('默认为')%>50。<%=LANG('最大为')%>1000。
{
     "action": "subscribe",
     "channel": "BTC_USDT.Depth@0.01",   //@<%=LANG('后面是指盘口精度')%>。<%=LANG('如果没有')%>@<%=LANG('精度')%>，<%=LANG('则当作默认精度')%>(<%=LANG('精度列表的第一个')%>)
     "size": 50
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">  "channel"</span><span class="s2">: "BTC_USDT.Depth@0.01",</span>
<span class="nt">	"data"</span><span class="s2">:{</span>
<span class="nt">    "asks"</span><span class="s2">:[					//<%=LANG('卖盘')%></span>
<span class="nt">		[</span>
<span class="nt">			16146.91,				//<%=LANG('价格')%></span>
<span class="nt">			0.029267				//<%=LANG('数量')%></span>
<span class="nt">		],</span>
<span class="nt">		[</span>
<span class="nt">			16146.93,</span>
<span class="nt">			0.129334</span>
<span class="nt">		]</span>
<span class="nt">	],</span>
<span class="nt">	"bids"</span><span class="s2">:[							//<%=LANG('买盘')%></span>
<span class="nt">		[</span>
<span class="nt">			16131.41,</span>
<span class="nt">			8.866436</span>
<span class="nt">		],</span>
<span class="nt">		[</span>
<span class="nt">			16131.36,</span>
<span class="nt">			8.85</span>
<span class="nt">		]</span>
<span class="nt">	]</span>
<span class="nt">  }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="yjfnhalaimegpbz">k<%=LANG('线')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
<%=LANG('更新频率')%>：100ms
{
     "action": "subscribe",
     "channel": "BTC_USDT.KLine_15M",
  	 "size": 1440
}
size<%=LANG('最大值为')%>1440，<%=LANG('默认值为')%>1

KLine<%=LANG('可选范围')%>:1M,5M,15M, 30M, 1H, 6H, 1D, 5D

<%=LANG('增量')%>k<%=LANG('线只有')%>1<%=LANG('条和')%>2<%=LANG('条二种情况')%>。<%=LANG('处于')%>k<%=LANG('线周期时间点时')%>，<%=LANG('就有')%>2<%=LANG('条')%>，<%=LANG('别的时候是')%>1<%=LANG('条')%>。

<%=LANG('全量时就可能会超过')%>2<%=LANG('条')%>。

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">  "channel"</span><span class="s2">:"BTC_USDT.KLine_15M",</span>
<span class="nt">  "type":"Whole",	//Whole:<%=LANG('全量')%> Update:<%=LANG('增量')%> <%=LANG('默认值为')%>Update</span>
<span class="nt">  "data"</span><span class="s2">:[</span>
<span class="nt">    [</span>
<span class="nt">      16199,			//<%=LANG('开')%></span>
<span class="nt">      16212.3,		//<%=LANG('高')%></span>
<span class="nt">      16087.42,		//<%=LANG('低')%></span>
<span class="nt">      16131.4,		//<%=LANG('收')%></span>
<span class="nt">      1160.79137966,	//<%=LANG('量')%></span>
<span class="nt">      1605265200	//<%=LANG('时间')%></span>
<span class="nt">  	],</span>
<span class="nt">    [</span>
<span class="nt">      16199,			//<%=LANG('开')%></span>
<span class="nt">      16212.3,		//<%=LANG('高')%></span>
<span class="nt">      16087.42,		//<%=LANG('低')%></span>
<span class="nt">      16131.4,		//<%=LANG('收')%></span>
<span class="nt">      1160.79137966,	//<%=LANG('量')%></span>
<span class="nt">      1605266100	//<%=LANG('时间')%></span>
<span class="nt">  	]</span>
<span class="nt">  ]</span>
<span class="nt">}</span>
<span class="nt">//kline<%=LANG('的时间由小到大排列')%></span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="navxsniqatzvyov"><%=LANG('历史成交')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
	"action": "subscribe",
	"channel": "BTC_USDT.Trade",
  "size": 50,	//size<%=LANG('最大值为')%>100，<%=LANG('默认值为')%>50
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">  "channel"</span><span class="s2">: "BTC_USDT.Trade",</span>
<span class="nt">  "data"</span><span class="s2">:[</span>
<span class="nt">		[</span>
<span class="nt">			16131.3,		//<%=LANG('价格')%></span>
<span class="nt">			0.03749,		//<%=LANG('数量')%></span>
<span class="nt">			-1,					//<%=LANG('卖')%></span>
<span class="nt">			1605266072	//<%=LANG('时间')%></span>
<span class="nt">		],</span>
<span class="nt">		......</span>
<span class="nt">		[</span>
<span class="nt">			16130.01,		//<%=LANG('价格')%></span>
<span class="nt">			0.2,				//<%=LANG('数量')%></span>
<span class="nt">			1,					//<%=LANG('买')%></span>
<span class="nt">			1605266073	//<%=LANG('时间')%></span>
<span class="nt">		]      </span>
<span class="nt">	]</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="otcfunzrxvdlvvu">Ticker</h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
	"action": "subscribe",
	"channel": "BTC_USDT.Ticker"
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">  "channel"</span><span class="s2">: "BTC_USDT.Ticker",</span>
<span class="nt">  "data"</span><span class="s2">:[</span>
<span class="nt">	16100.9,		//<%=LANG('开盘价格')%></span>
<span class="nt">  	16133.2,		//<%=LANG('最高价')%></span>
<span class="nt">  	16100.1,		//<%=LANG('最低价')%></span>
<span class="nt">  	16132.3,		//<%=LANG('最新成交价')%></span>
<span class="nt">    1000,		    //<%=LANG('成交量')%>(<%=LANG('最近的')%>24<%=LANG('小时')%>)</span>
<span class="nt">	0.19502,		//24H<%=LANG('涨跌幅')%></span>
<span class="nt">	1605266072	//<%=LANG('时间')%></span>
<span class="nt">	]</span>
<span class="nt">}   </span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="eiwgictpjqjalra">allTicker</h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
	"action": "subscribe",
	"channel": "All.Ticker"
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">  "channel"</span><span class="s2">: "All.Ticker",</span>
<span class="nt">  "data"</span><span class="s2">:{</span>
<span class="nt">    "BTC_USDT"</span><span class="s2">:[</span>
<span class="nt">      16100.9,		//<%=LANG('开盘价格')%></span>
<span class="nt">      16133.2,		//<%=LANG('最高价')%></span>
<span class="nt">      16100.1,		//<%=LANG('最低价')%></span>
<span class="nt">      16132.3,		//<%=LANG('最新成交价')%></span>
<span class="nt">      1000,		    //<%=LANG('成交量')%>(<%=LANG('最近的')%>24<%=LANG('小时')%>)</span>
<span class="nt">      0.19502,		//24H<%=LANG('涨跌幅')%></span>
<span class="nt">      1605266072	//<%=LANG('时间')%></span>
<span class="nt">		],</span>
<span class="nt">    "BCH_USDT"</span><span class="s2">:[</span>
<span class="nt">      16100.9,		//<%=LANG('开盘价格')%></span>
<span class="nt">      16133.2,		//<%=LANG('最高价')%></span>
<span class="nt">      16100.1,		//<%=LANG('最低价')%></span>
<span class="nt">      16132.3,		//<%=LANG('最新成交价')%></span>
<span class="nt">      1000,		    //<%=LANG('成交量')%>(<%=LANG('最近的')%>24<%=LANG('小时')%>)</span>
<span class="nt">      0.19502,		//24H<%=LANG('涨跌幅')%></span>
<span class="nt">      1605266072	//<%=LANG('时间')%></span>
<span class="nt">		]</span>
<span class="nt">    ......</span>
<span class="nt">  }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="nckdoeinltygibd"><%=LANG('指数价格和标记价格')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
	"action": "subscribe",
	"channel": "BTC_USDT.mark"	//BTC_USDT.index. mark<%=LANG('表示标记价格')%>，index<%=LANG('表示指数价格')%>
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">  "channel"</span><span class="s2">:"BTC_USDT.index",</span>
<span class="nt">  "data"</span><span class="s2">:"38550.57"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="guncowonzzenums"><%=LANG('指数价格')%>K<%=LANG('线和标记价格')%>K<%=LANG('线')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
	"action": "subscribe",
	"channel": "BTC_USDT.mark_15M",	//BTC_USDT.index_15M. mark<%=LANG('表示标记价格')%>，index<%=LANG('表示指数价格')%>
    "size": 50,	//size<%=LANG('最大值为')%>100，<%=LANG('默认值为')%>1
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">  "channel"</span><span class="s2">: "BTC_USDT.mark",	//BTC_USDT.index_15M</span>
<span class="nt">  "data"</span><span class="s2">:[</span>
<span class="nt">      [</span>
<span class="nt">        16199,			//<%=LANG('开')%></span>
<span class="nt">        16212.3,		//<%=LANG('高')%></span>
<span class="nt">        16087.42,		//<%=LANG('低')%></span>
<span class="nt">        16131.4,		//<%=LANG('收')%></span>
<span class="nt">        1605265200	//<%=LANG('时间')%></span>
<span class="nt">      ],</span>
<span class="nt">      [</span>
<span class="nt">        16199,			//<%=LANG('开')%></span>
<span class="nt">        16212.3,		//<%=LANG('高')%></span>
<span class="nt">        16087.42,		//<%=LANG('低')%></span>
<span class="nt">        16131.4,		//<%=LANG('收')%></span>
<span class="nt">        1605266100	//<%=LANG('时间')%></span>
<span class="nt">      ]</span>
<span class="nt">    ]</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="krsxzwkbfephlzw"><%=LANG('资金费率和下次结算时间')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
	"action": "subscribe",
	"channel": "BTC_USDT.FundingRate"
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"BTC_USDT.FundingRate",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">        "fundingRate"</span><span class="s2">:-0.297589,	//<%=LANG('资金费率')%></span>
<span class="nt">        "nextCalculateTime":"2021-01-15 00:00:00"	//<%=LANG('下次资金费用结算时间')%></span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="dubmfjzclglazov">ping</h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "ping"
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">	"action"</span><span class="s2">:"pong"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="hfcrcqsnuuhlbgt">zb<%=LANG('现货兑换价格')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
	"action": "subscribe",
	"channel": "ETH_USDT.bidsSpotPrice"	//<%=LANG('买价')%>。ETH_USDT.asksSpotPrice<%=LANG('为卖价')%>
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"ETH_USDT.bidsSpotPrice",</span>
<span class="nt">    "data"</span><span class="s2">: "1807.72"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>



            <h1 id="<%=LANG('资金')%>"><%=LANG('资金')%></h1>
            <h2 id="qwertxnlzhilsxh"><%=LANG('资金变动')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Fund.change",	//<%=LANG('资金变动')%>
  "futuresAccountType":1,
  "currency": "USDT"
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">  "channel"</span><span class="s2">:"Fund.change",</span>
<span class="nt">  "data"</span><span class="s2">:{</span>
<span class="nt">    "amount"</span><span class="s2">:"6.2026735",</span>
<span class="nt">    "balance"</span><span class="s2">:"31610.77759177923445",</span>
<span class="nt">    "createTime"</span><span class="s2">:"1610972128891",</span>
<span class="nt">    "currencyId"</span><span class="s2">:"6",</span>
<span class="nt">    "freezeAmount"</span><span class="s2">:"31604.57491827923445",</span>
<span class="nt">    "id"</span><span class="s2">:"6756906844096047104",</span>
<span class="nt">    "modifyTime"</span><span class="s2">:"1611198648373",</span>
<span class="nt">    "userId"</span><span class="s2">:"6756829323044333568"</span>
<span class="nt">  }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>channel  </td><td> <%=LANG('是')%>   </td><td> String </td><td> Fund.change </td></tr>
                    <tr><td>currency </td><td> <%=LANG('是')%>   </td><td> String </td><td> <%=LANG('币种')%>，<%=LANG('如')%>BTC </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="ejqhhoblicvnben"><%=LANG('资金查询')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Fund.balance",
  "futuresAccountType":1,
  "currency": "USDT"
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Fund.balance",</span>
<span class="nt">    "data"</span><span class="s2">:[{</span>
<span class="nt">				"allUnrealizedPnl"</span><span class="s2">:"5.50275",</span>
<span class="nt">				"allMargin"</span><span class="s2">:"1.9441555",</span>
<span class="nt">				"amount"</span><span class="s2">:"1001000201.96515424",</span>
<span class="nt">				"freezeAmount"</span><span class="s2">:"1.9441555",</span>
<span class="nt">				"currencyName"</span><span class="s2">:"usdt",</span>
<span class="nt">				"createTime"</span><span class="s2">:"1614841089612",</span>
<span class="nt"> 				"id"</span><span class="s2">:"6773134441524176896",</span>
<span class="nt">				"currencyId"</span><span class="s2">:"6",</span>
<span class="nt">				"accountBalance"</span><span class="s2">:"1001000209.41205974",</span>
<span class="nt">				"userId"</span><span class="s2">:"6755772669834045440"</span>
<span class="nt">     }]</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>channel  </td><td> <%=LANG('是')%>   </td><td> String </td><td> Fund.balance </td></tr>
                    <tr><td>currency </td><td> <%=LANG('否')%>   </td><td> String </td><td> <%=LANG('币种')%>，<%=LANG('如')%>BTC  </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>userId</td><td><%=LANG('用户')%>id</td></tr>
                    <tr><td>currencyId</td><td><%=LANG('币种')%>id</td></tr>
                    <tr><td>currencyName</td><td><%=LANG('币种名字')%></td></tr>
                    <tr><td>amount</td><td><%=LANG('可用资产量')%></td></tr>
                    <tr><td>freezeAmount</td><td><%=LANG('冻结量')%></td></tr>
                    <tr><td>id</td><td><%=LANG('资金')%>id</td></tr>
                    <tr><td>accountBalance</td><td><%=LANG('账户余额')%></td></tr>
                    <tr><td>allUnrealizedPnl</td><td><%=LANG('账户未实现盈亏')%></td></tr>
                    <tr><td>allMargin</td><td><%=LANG('账户保证金')%></td></tr>
                    <tr><td>createTime</td><td><%=LANG('创建时间')%></td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="ihmatehdwpkujls"><%=LANG('查询用户账单')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Fund.getBill",
  "futuresAccountType":1,
  "currency": "USDT"
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Fund.getBill",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">        "pageSize"</span><span class="s2">:100,</span>
<span class="nt">        "list"</span><span class="s2">:[</span>
<span class="nt">            {</span>
<span class="nt">                "symbol"</span><span class="s2">:"ETH_USDT",</span>
<span class="nt">                "available"</span><span class="s2">:"1001000206.70609902",</span>
<span class="nt">                "remark"</span><span class="s2">:"",</span>
<span class="nt">                "type"</span><span class="s2">:1,</span>
<span class="nt">                "changeAmount"</span><span class="s2">:"0.01966",</span>
<span class="nt">                "userId"</span><span class="s2">:"6755772669834045440",</span>
<span class="nt">                "freezeId"</span><span class="s2">:"0",</span>
<span class="nt">                "marketId"</span><span class="s2">:"101",</span>
<span class="nt">                "fundId"</span><span class="s2">:"6773134441524176896",</span>
<span class="nt">                "beforeAmount"</span><span class="s2">:"1001000206.68643902",</span>
<span class="nt">                "beforeFreezeAmount"</span><span class="s2">:"0",</span>
<span class="nt">                "unit"</span><span class="s2">:"usdt",</span>
<span class="nt">                "modifyTime"</span><span class="s2">:"0",</span>
<span class="nt">                "createTime"</span><span class="s2">:"1616769725796",</span>
<span class="nt">                "id"</span><span class="s2">:"6781223727985076239",</span>
<span class="nt">                "currencyId"</span><span class="s2">:"6",</span>
<span class="nt">                "outsideId"</span><span class="s2">:"6781223728001851392",</span>
<span class="nt">                "operatorId"</span><span class="s2">:"0",</span>
<span class="nt">                "isIn"</span><span class="s2">:1</span>
<span class="nt">            }</span>
<span class="nt">            ...</span>
<span class="nt">        ],</span>
<span class="nt">        "pageNum"</span><span class="s2">:1</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>channel   </td><td> <%=LANG('是')%>   </td><td> String  </td><td> Fund.getBill     </td></tr>
                    <tr><td>currency  </td><td> <%=LANG('否')%>   </td><td> String  </td><td> <%=LANG('币种')%>，<%=LANG('如')%>BTC      </td></tr>
                    <tr><td>type      </td><td> <%=LANG('否')%>   </td><td> Integer </td><td> <%=LANG('账单类型')%>         </td></tr>
                    <tr><td>startTime </td><td> <%=LANG('否')%>   </td><td> Long    </td><td> <%=LANG('开始时间戳')%>       </td></tr>
                    <tr><td>endTime   </td><td> <%=LANG('否')%>   </td><td> Long    </td><td> <%=LANG('结束时间戳')%>       </td></tr>
                    <tr><td>pageNum   </td><td> <%=LANG('否')%>   </td><td> Integer </td><td> <%=LANG('页码')%>             </td></tr>
                    <tr><td>pageSize  </td><td> <%=LANG('否')%>   </td><td> Integer </td><td> <%=LANG('每页行数')%>，<%=LANG('默认')%>10 </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>userId</td><td><%=LANG('用户')%>id</td></tr>
                    <tr><td>freezeId</td><td><%=LANG('冻结')%>id</td></tr>
                    <tr><td>type</td><td><%=LANG('账单类型')%></td></tr>
                    <tr><td>changeAmount</td><td><%=LANG('变更资金量')%></td></tr>
                    <tr><td>feeRate</td><td><%=LANG('费率')%></td></tr>
                    <tr><td>fee</td><td><%=LANG('手续费')%></td></tr>
                    <tr><td>operatorId</td><td><%=LANG('操作者')%>id</td></tr>
                    <tr><td>beforeAmount</td><td><%=LANG('变更前账户资金')%></td></tr>
                    <tr><td>beforeFreezeAmount</td><td><%=LANG('变更前冻结资金')%></td></tr>
                    <tr><td>marketId</td><td><%=LANG('市场')%>id</td></tr>
                    <tr><td>outsideId</td><td><%=LANG('外部幂等')%>id</td></tr>
                    <tr><td>id</td><td><%=LANG('账单')%>id</td></tr>
                    <tr><td>isIn</td><td>1：<%=LANG('增加')%> 0： <%=LANG('减少')%></td></tr>
                    <tr><td>available</td><td><%=LANG('当前可用资产')%></td></tr>
                    <tr><td>unit</td><td><%=LANG('币种名称')%>，<%=LANG('数量单位')%></td></tr>
                    <tr><td>createTime</td><td><%=LANG('创建时间戳')%></td></tr>
                    <tr><td>modifyTime</td><td><%=LANG('更新时间戳')%></td></tr>
                    <tr><td>extend</td><td><%=LANG('备用字段')%></td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="obfoimkxcafxtfa"><%=LANG('合约的账户详情变动')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Fund.assetChange",
  "futuresAccountType":1,
  "convertUnit": "cny"
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Fund.assetChange",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">        "accountBalance"</span><span class="s2">:"9996553.0184782",</span>
<span class="nt">        "accountBalanceConvert"</span><span class="s2">:"64672699.7530447149",</span>
<span class="nt">        "allMargin"</span><span class="s2">:"0",</span>
<span class="nt">        "allMarginConvert"</span><span class="s2">:"0",</span>
<span class="nt">        "allUnrealizedPnl"</span><span class="s2">:"-3418.13584",</span>
<span class="nt">        "allUnrealizedPnlConvert"</span><span class="s2">:"-22113.62981688",</span>
<span class="nt">        "available"</span><span class="s2">:"9984355.9603782",</span>
<span class="nt">        "availableConvert"</span><span class="s2">:"64593790.8856667649",</span>
<span class="nt">        "convertUnit"</span><span class="s2">:"cny",</span>
<span class="nt">        "freeze"</span><span class="s2">:"15615.19394",</span>
<span class="nt">        "freezeConvert"</span><span class="s2">:"101022.49719483",</span>
<span class="nt">        "futuresAccountType"</span><span class="s2">:1,</span>
<span class="nt">        "percent"</span><span class="s2">:"-47.9900%",</span>
<span class="nt">        "unit"</span><span class="s2">:"usdt",</span>
<span class="nt">        "userId"</span><span class="s2">:"6755772669834045440"</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>channel     </td><td> <%=LANG('是')%>   </td><td> String </td><td> Fund.assetChange                                             </td></tr>
                    <tr><td>convertUnit </td><td> <%=LANG('否')%>   </td><td> String </td><td> <%=LANG('折合单位')%>，<%=LANG('页面显示上')%>"≈"<%=LANG('号后面的数字单位')%>，<%=LANG('可选')%>：cny，usd,btc,<%=LANG('默认')%>cny </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="krsdhcldtavzdor"><%=LANG('查询合约的账户详情')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Fund.assetInfo",	//<%=LANG('资金变动')%>
  "futuresAccountType":1,
  "convertUnit": "cny"
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Fund.assetInfo",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">            "accountBalanceConvert"</span><span class="s2">:"6652947691.815372649962",</span>
<span class="nt">            "allMarginConvert"</span><span class="s2">:"12.92144069965",</span>
<span class="nt">            "availableConvert"</span><span class="s2">:"6652947642.321004625312",</span>
<span class="nt">            "available"</span><span class="s2">:"1001000201.96515424",</span>
<span class="nt">            "allUnrealizedPnlConvert"</span><span class="s2">:"36.572927325",</span>
<span class="nt">            "percent"</span><span class="s2">:"283.0400%",</span>
<span class="nt">            "userId"</span><span class="s2">:"6755772669834045440",</span>
<span class="nt">            "allMargin"</span><span class="s2">:"1.9441555",</span>
<span class="nt">            "allUnrealizedPnl"</span><span class="s2">:"5.50275",</span>
<span class="nt">            "unit"</span><span class="s2">:"usdt",</span>
<span class="nt">            "convertUnit"</span><span class="s2">:"cny",</span>
<span class="nt">            "freeze"</span><span class="s2">:"1.9441555",</span>
<span class="nt">            "freezeConvert"</span><span class="s2">:"12.92144069965",</span>
<span class="nt">            "futuresAccountType"</span><span class="s2">:1,</span>
<span class="nt">            "accountBalance"</span><span class="s2">:"1001000209.41205974"</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>channel     </td><td> <%=LANG('是')%>   </td><td> String </td><td> Fund.assetInfo                                               </td></tr>
                    <tr><td>convertUnit </td><td> <%=LANG('否')%>   </td><td> String </td><td> <%=LANG('折合单位')%>，<%=LANG('页面显示上')%>"≈"<%=LANG('号后面的数字单位')%>，<%=LANG('可选')%>：cny，usd,btc,<%=LANG('默认')%>cny。<%=LANG('不能同时订阅多种折合单位')%>。<%=LANG('后面订阅会自动取消前面的订阅')%>。 </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>



            <h1 id="<%=LANG('仓位')%>"><%=LANG('仓位')%></h1>
            <h2 id="ukcbamzhxbhzdfn"><%=LANG('仓位变动')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Positions.change",
  "futuresAccountType":1,
  "symbol":"BTC_USDT"
}
<%=LANG('如果没有')%>symbol，<%=LANG('表示仓位的任何变动都会推送给客户')%>。<%=LANG('如果指定了')%>symbol，<%=LANG('则只会推送此')%>market<%=LANG('的仓位变动给客户')%>。

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Positions.change",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">      "amount"</span><span class="s2">:"179.21",</span>
<span class="nt">      "autoLightenRatio"</span><span class="s2">:"0",</span>
<span class="nt">      "avgPrice"</span><span class="s2">:"1714.85",</span>
<span class="nt">      "contractType"</span><span class="s2">:1,</span>
<span class="nt">      "createTime"</span><span class="s2">:"1616641679860",</span>
<span class="nt">      "freezeAmount"</span><span class="s2">:"4.26",</span>
<span class="nt">      "id"</span><span class="s2">:"6780686664403527685",</span>
<span class="nt">      "leverage"</span><span class="s2">:2,</span>
<span class="nt">      "liquidateLevel"</span><span class="s2">:2,</span>
<span class="nt">      "liquidatePrice"</span><span class="s2">:"803.16",</span>
<span class="nt">      "maintainMargin"</span><span class="s2">:"2180.79583",</span>
<span class="nt">      "margin"</span><span class="s2">:"164053.23943148",</span>
<span class="nt">      "marginBalance"</span><span class="s2">:"204814.55393148",</span>
<span class="nt">      "marginMode"</span><span class="s2">:1,</span>
<span class="nt">      "marginRate"</span><span class="s2">:"0.010647",</span>
<span class="nt">      "marketId"</span><span class="s2">:"101",</span>
<span class="nt">      "marketName"</span><span class="s2">:"ETH_USDT",</span>
<span class="nt">      "nominalValue"</span><span class="s2">:"327921.46402",</span>
<span class="nt">      "originId"</span><span class="s2">:"6780686664403527710",</span>
<span class="nt">      "positionsMode"</span><span class="s2">:2,</span>
<span class="nt">      "returnRate"</span><span class="s2">:"0.2652",</span>
<span class="nt">      "side"</span><span class="s2">:1,</span>
<span class="nt">      "status"</span><span class="s2">:1,</span>
<span class="nt">      "unrealizedPnl"</span><span class="s2">:"40761.3145",</span>
<span class="nt">      "userId"</span><span class="s2">:"6779951231092664320"</span>
<span class="nt">  }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>channel </td><td> <%=LANG('是')%>   </td><td> String </td><td> Positions.change                           </td></tr>
                    <tr><td>symbol  </td><td> <%=LANG('否')%>   </td><td> String </td><td> <%=LANG('合约')%>，<%=LANG('即市场交易对唯一标识符')%>，<%=LANG('如')%>：BTC_USDT </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>userId</td><td><%=LANG('用户')%>id</td></tr>
                    <tr><td>marketId</td><td><%=LANG('市场')%>id</td></tr>
                    <tr><td>symbol</td><td><%=LANG('市场名称')%></td></tr>
                    <tr><td>side</td><td><%=LANG('开仓方向')%>,<%=LANG('开多')%>：1 <%=LANG('开空')%>：0</td></tr>
                    <tr><td>leverage</td><td><%=LANG('杠杆倍数')%></td></tr>
                    <tr><td>amount</td><td><%=LANG('持有仓位数量')%></td></tr>
                    <tr><td>freezeAmount</td><td><%=LANG('下单冻结仓位数量')%></td></tr>
                    <tr><td>avgPrice</td><td><%=LANG('开仓均价')%></td></tr>
                    <tr><td>liquidatePrice</td><td><%=LANG('强平价格')%></td></tr>
                    <tr><td>margin</td><td><%=LANG('保证金')%></td></tr>
                    <tr><td>marginMode</td><td><%=LANG('保证金模式')%>：1<%=LANG('逐仓')%>（<%=LANG('默认')%>），2<%=LANG('全仓')%></td></tr>
                    <tr><td>unrealizedPnl</td><td><%=LANG('未实现盈亏')%></td></tr>
                    <tr><td>marginBalance</td><td><%=LANG('保证金余额')%></td></tr>
                    <tr><td>maintainMargin</td><td><%=LANG('维持保证金')%></td></tr>
                    <tr><td>marginRate</td><td><%=LANG('保证金率')%></td></tr>
                    <tr><td>nominalValue</td><td><%=LANG('头寸的名义价值')%></td></tr>
                    <tr><td>id</td><td><%=LANG('仓位')%>id</td></tr>
                    <tr><td>createTime</td><td><%=LANG('创建时间')%></td></tr>
                    <tr><td>modifyTime</td><td><%=LANG('修改时间')%></td></tr>
                    <tr><td>extend</td><td><%=LANG('备用字段')%></td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="lardreisxtmlfxi"><%=LANG('仓位查询')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Positions.getPositions",
  "futuresAccountType":1,
  "symbol":"BTC_USDT"
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Positions.getPositions",</span>
<span class="nt">    "data"</span><span class="s2">:[</span>
<span class="nt">        {</span>
<span class="nt">            "leverage"</span><span class="s2">:20,</span>
<span class="nt">            "returnRate"</span><span class="s2">:"2.9524",</span>
<span class="nt">            "avgPrice"</span><span class="s2">:"1690.4",</span>
<span class="nt">            "contractType"</span><span class="s2">:1,</span>
<span class="nt">            "marginMode"</span><span class="s2">:1,</span>
<span class="nt">            "marketId"</span><span class="s2">:"101",</span>
<span class="nt">            "marginRate"</span><span class="s2">:"0.023228",</span>
<span class="nt">            "freezeAmount"</span><span class="s2">:"0",</span>
<span class="nt">            "originId"</span><span class="s2">:"6781405543660529684",</span>
<span class="nt">            "autoLightenRatio"</span><span class="s2">:"0.9",</span>
<span class="nt">            "id"</span><span class="s2">:"6780839890322991104",</span>
<span class="nt">            "marginBalance"</span><span class="s2">:"7.6835755",</span>
<span class="nt">            "amount"</span><span class="s2">:"0.023",</span>
<span class="nt">            "margin"</span><span class="s2">:"1.9441555",</span>
<span class="nt">            "side"</span><span class="s2">:1,</span>
<span class="nt">            "liquidatePrice"</span><span class="s2">:"1612.32",</span>
<span class="nt">            "userId"</span><span class="s2">:"6755772669834045440",</span>
<span class="nt">            "marketName"</span><span class="s2">:"ETH_USDT",</span>
<span class="nt">            "createTime"</span><span class="s2">:"1616813074031",</span>
<span class="nt">            "unrealizedPnl"</span><span class="s2">:"5.73942",</span>
<span class="nt">            "liquidateLevel"</span><span class="s2">:1,</span>
<span class="nt">            "positionsMode"</span><span class="s2">:2,</span>
<span class="nt">            "maintainMargin"</span><span class="s2">:"0.17847448",</span>
<span class="nt">            "nominalValue"</span><span class="s2">:"38.98109",</span>
<span class="nt">            "status"</span><span class="s2">:1</span>
<span class="nt">        }</span>
<span class="nt">    ]</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>channel </td><td> <%=LANG('是')%>   </td><td> String </td><td> Positions.getPositions                     </td></tr>
                    <tr><td>symbol  </td><td> <%=LANG('是')%>   </td><td> String </td><td> <%=LANG('合约')%>，<%=LANG('即市场交易对唯一标识符')%>，<%=LANG('如')%>：BTC_USDT </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>userId</td><td><%=LANG('用户')%>id</td></tr>
                    <tr><td>marketId</td><td><%=LANG('市场')%>id</td></tr>
                    <tr><td>symbol</td><td><%=LANG('市场名称')%></td></tr>
                    <tr><td>side</td><td><%=LANG('开仓方向')%>,<%=LANG('开多')%>：1 <%=LANG('开空')%>：0</td></tr>
                    <tr><td>leverage</td><td><%=LANG('杠杆倍数')%></td></tr>
                    <tr><td>amount</td><td><%=LANG('持有仓位数量')%></td></tr>
                    <tr><td>freezeAmount</td><td><%=LANG('下单冻结仓位数量')%></td></tr>
                    <tr><td>avgPrice</td><td><%=LANG('开仓均价')%></td></tr>
                    <tr><td>liquidatePrice</td><td><%=LANG('强平价格')%></td></tr>
                    <tr><td>margin</td><td><%=LANG('保证金')%></td></tr>
                    <tr><td>marginMode</td><td><%=LANG('保证金模式')%>：1<%=LANG('逐仓')%>（<%=LANG('默认')%>），2<%=LANG('全仓')%></td></tr>
                    <tr><td>unrealizedPnl</td><td><%=LANG('未实现盈亏')%></td></tr>
                    <tr><td>marginBalance</td><td><%=LANG('保证金余额')%></td></tr>
                    <tr><td>maintainMargin</td><td><%=LANG('维持保证金')%></td></tr>
                    <tr><td>marginRate</td><td><%=LANG('保证金率')%></td></tr>
                    <tr><td>nominalValue</td><td><%=LANG('头寸的名义价值')%></td></tr>
                    <tr><td>id</td><td><%=LANG('仓位')%>id</td></tr>
                    <tr><td>createTime</td><td><%=LANG('创建时间')%></td></tr>
                    <tr><td>modifyTime</td><td><%=LANG('修改时间')%></td></tr>
                    <tr><td>extend</td><td><%=LANG('备用字段')%></td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="sbfenvdnooaisrt"><%=LANG('保证金信息查询')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Positions.marginInfo",
  "futuresAccountType":1,
  "positionsId":"6742095107924699136"
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">  "channel"</span><span class="s2">:"Positions.marginInfo",</span>
<span class="nt">  "data"</span><span class="s2">:{</span>
<span class="nt">    "positionsId"</span><span class="s2">: "6742095107924699136",	</span>
<span class="nt">    "maxAdd"</span><span class="s2">: 1212.12,	//<%=LANG('最大保证金增加数量')%></span>
<span class="nt">	"maxSub"</span><span class="s2">: 1212.12,	//<%=LANG('最大保证金提取数量')%></span>
<span class="nt">	"liquidatePrice"</span><span class="s2">: 121212.12	//<%=LANG('预计强平价格')%></span>
<span class="nt">  }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>channel     </td><td> <%=LANG('是')%>   </td><td> String </td><td> Positions.marginInfo </td></tr>
                    <tr><td>positionsId </td><td> <%=LANG('是')%>   </td><td> Long   </td><td> <%=LANG('仓位')%>id               </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="anmubukedmyberb"><%=LANG('提取或增加保证金')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Positions.updateMargin",
  "futuresAccountType":1,
  "positionsId":"6742095107924699136",
  "amount": 1,
  "type":1
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Positions.updateMargin",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">        "leverage"</span><span class="s2">:20,</span>
<span class="nt">        "avgPrice"</span><span class="s2">:"2013.94",</span>
<span class="nt">        "bankruptcyPrice"</span><span class="s2">:"2121.33",</span>
<span class="nt">        "marginMode"</span><span class="s2">:1,</span>
<span class="nt">        "marketId"</span><span class="s2">:"101",</span>
<span class="nt">        "marginRate"</span><span class="s2">:"0",</span>
<span class="nt">        "freezeAmount"</span><span class="s2">:"0",</span>
<span class="nt">        "modifyTime"</span><span class="s2">:"1617872786967",</span>
<span class="nt">        "originId"</span><span class="s2">:"6785805193553389618",</span>
<span class="nt">        "id"</span><span class="s2">:"6785805193549195299",</span>
<span class="nt">        "marginBalance"</span><span class="s2">:"0",</span>
<span class="nt">        "amount"</span><span class="s2">:"0.15",</span>
<span class="nt">        "margin"</span><span class="s2">:"16.10917",</span>
<span class="nt">        "side"</span><span class="s2">:0,</span>
<span class="nt">        "liquidatePrice"</span><span class="s2">:"2112.89",</span>
<span class="nt">        "keyMark"</span><span class="s2">:"6755772669834045440-101-0-",</span>
<span class="nt">        "userId"</span><span class="s2">:"6755772669834045440",</span>
<span class="nt">        "marketName"</span><span class="s2">:"ETH_USDT",</span>
<span class="nt">        "createTime"</span><span class="s2">:"1617862032307",</span>
<span class="nt">        "unrealizedPnl"</span><span class="s2">:"0.066",</span>
<span class="nt">        "liquidateLevel"</span><span class="s2">:1,</span>
<span class="nt">        "positionsMode"</span><span class="s2">:2,</span>
<span class="nt">        "maintainMargin"</span><span class="s2">:"0",</span>
<span class="nt">        "nominalValue"</span><span class="s2">:"302.0637",</span>
<span class="nt">        "open"</span><span class="s2">:false,</span>
<span class="nt">        "status"</span><span class="s2">:1</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>channel     </td><td> <%=LANG('是')%>   </td><td> String     </td><td> Positions.updateMargin </td></tr>
                    <tr><td>positionsId </td><td> <%=LANG('是')%>   </td><td> Long       </td><td> <%=LANG('仓位')%>id                </td></tr>
                    <tr><td>amount      </td><td> <%=LANG('是')%>   </td><td> BigDecimal </td><td> <%=LANG('变动数量')%>               </td></tr>
                    <tr><td>type        </td><td> <%=LANG('是')%>   </td><td> Integer    </td><td> 1: <%=LANG('增加')%>  0：<%=LANG('减少')%>       </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="ukrcnxbninzbtsa"><%=LANG('仓位配置信息查询')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Positions.getSetting",
  "futuresAccountType":1,
  "symbol":"BTC_USDT"
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Positions.setLeverage",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">        "leverage"</span><span class="s2">:12,</span>
<span class="nt">        "modifyTime"</span><span class="s2">:"1617951800483",</span>
<span class="nt">        "createTime"</span><span class="s2">:"1617881408203",</span>
<span class="nt">        "positionsMode"</span><span class="s2">:2,</span>
<span class="nt">        "id"</span><span class="s2">:"6785886461951485952",</span>
<span class="nt">        "marginMode"</span><span class="s2">:1,</span>
<span class="nt">        "keyMark"</span><span class="s2">:"6755772669834045440-101-",</span>
<span class="nt">        "userId"</span><span class="s2">:"6755772669834045440",</span>
<span class="nt">        "marketId"</span><span class="s2">:"101"</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>channel </td><td> <%=LANG('是')%>   </td><td> String </td><td> Positions.getSetting                       </td></tr>
                    <tr><td>symbol  </td><td> <%=LANG('是')%>   </td><td> String </td><td> <%=LANG('合约')%>，<%=LANG('即市场交易对唯一标识符')%>，<%=LANG('如')%>：BTC_USDT </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="xpsnozxlbbrzvuq"><%=LANG('仓位杠杆设置')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Positions.setLeverage",
  "futuresAccountType":1,
  "symbol":"BTC_USDT",
  "leverage": 20
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Positions.setPositionsMode",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">        "leverage"</span><span class="s2">:13,</span>
<span class="nt">        "modifyTime"</span><span class="s2">:"1617955003674",</span>
<span class="nt">        "createTime"</span><span class="s2">:"1617881408203",</span>
<span class="nt">        "positionsMode"</span><span class="s2">:1,</span>
<span class="nt">        "id"</span><span class="s2">:"6785886461951485952",</span>
<span class="nt">        "marginMode"</span><span class="s2">:1,</span>
<span class="nt">        "keyMark"</span><span class="s2">:"6755772669834045440-101-",</span>
<span class="nt">        "userId"</span><span class="s2">:"6755772669834045440",</span>
<span class="nt">        "marketId"</span><span class="s2">:"101"</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>channel  </td><td> <%=LANG('是')%>   </td><td> String  </td><td> Positions.setLeverage                      </td></tr>
                    <tr><td>symbol   </td><td> <%=LANG('是')%>   </td><td> String  </td><td> <%=LANG('合约')%>，<%=LANG('即市场交易对唯一标识符')%>，<%=LANG('如')%>：BTC_USDT </td></tr>
                    <tr><td>leverage </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> <%=LANG('杠杆倍数')%>                                   </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="ipahnqwhvbxbyre"><%=LANG('仓位持仓模式设置')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Positions.setPositionsMode",
  "futuresAccountType":1,
  "symbol":"BTC_USDT",
  "positionsMode":1
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Positions.setMarginMode",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">        "leverage"</span><span class="s2">:13,</span>
<span class="nt">        "modifyTime"</span><span class="s2">:"1617955003674",</span>
<span class="nt">        "createTime"</span><span class="s2">:"1617881408203",</span>
<span class="nt">        "positionsMode"</span><span class="s2">:1,</span>
<span class="nt">        "id"</span><span class="s2">:"6785886461951485952",</span>
<span class="nt">        "marginMode"</span><span class="s2">:1,</span>
<span class="nt">        "keyMark"</span><span class="s2">:"6755772669834045440-101-",</span>
<span class="nt">        "userId"</span><span class="s2">:"6755772669834045440",</span>
<span class="nt">        "marketId"</span><span class="s2">:"101"</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>channel       </td><td> <%=LANG('是')%>   </td><td> String  </td><td> Positions.setPositionsMode                 </td></tr>
                    <tr><td>symbol        </td><td> <%=LANG('是')%>   </td><td> String  </td><td> <%=LANG('合约')%>，<%=LANG('即市场交易对唯一标识符')%>，<%=LANG('如')%>：BTC_USDT </td></tr>
                    <tr><td>positionsMode </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> 1:<%=LANG('单向持仓')%>，2: <%=LANG('双向持仓')%>                    </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="omaetddyphksqhs"><%=LANG('仓位保证金模式设置')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Positions.setMarginMode",
  "futuresAccountType":1,
  "symbol":"BTC_USDT",
  "marginMode":1
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Positions.setMarginMode",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">        "leverage"</span><span class="s2">:13,</span>
<span class="nt">        "modifyTime"</span><span class="s2">:"1617955003674",</span>
<span class="nt">        "createTime"</span><span class="s2">:"1617881408203",</span>
<span class="nt">        "positionsMode"</span><span class="s2">:1,</span>
<span class="nt">        "id"</span><span class="s2">:"6785886461951485952",</span>
<span class="nt">        "marginMode"</span><span class="s2">:1,</span>
<span class="nt">        "keyMark"</span><span class="s2">:"6755772669834045440-101-",</span>
<span class="nt">        "userId"</span><span class="s2">:"6755772669834045440",</span>
<span class="nt">        "marketId"</span><span class="s2">:"101"</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>sCode</td><td><%=LANG('结果的')%>code，1<%=LANG('代表成功')%></td></tr>
                    <tr><td>sMsg</td><td><%=LANG('结果描述')%></td></tr>
                    <tr><td>orderId</td><td><%=LANG('订单')%>ID</td></tr>
                    <tr><td>clientOrderId</td><td><%=LANG('自定义订单')%>ID，<%=LANG('如空缺系统会自动赋')%></td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="gwsftrthcwjkqmq"><%=LANG('查看用户当前头寸')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Positions.getNominalValue",
  "futuresAccountType":1,
  "symbol":"BTC_USDT",
  "side":1
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Positions.getNominalValue",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">        "side"</span><span class="s2">:1,</span>
<span class="nt">        "openOrderNominalValue"</span><span class="s2">:"0",</span>
<span class="nt">        "nominalValue"</span><span class="s2">:"0",</span>
<span class="nt">        "marketId"</span><span class="s2">:"100"</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>channel </td><td> <%=LANG('是')%>   </td><td> String  </td><td> Positions.getNominalValue                  </td></tr>
                    <tr><td>symbol  </td><td> <%=LANG('是')%>   </td><td> String  </td><td> <%=LANG('合约')%>，<%=LANG('即市场交易对唯一标识符')%>，<%=LANG('如')%>：BTC_USDT </td></tr>
                    <tr><td>side    </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> <%=LANG('方向')%>：1：<%=LANG('开多')%>   0 <%=LANG('开空')%>                      </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>nominalValue</td><td><%=LANG('用户仓位头寸名义价值')%></td></tr>
                    <tr><td>marketId</td><td><%=LANG('市场')%>id</td></tr>
                    <tr><td>openOrderNominalValue</td><td><%=LANG('委托单头寸名义价值')%></td></tr>

                    </tbody>
                </table>
            </div>



            <h1 id="<%=LANG('订单和交易')%>"><%=LANG('订单和交易')%></h1>
            <h2 id="lzwjkrnranxziiy"><%=LANG('订单变动')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Trade.orderChange"
  "symbol":"BTC_USDT"
}
<%=LANG('如果没有')%>symbol，<%=LANG('表示仓位的任何变动都会推送给客户')%>。<%=LANG('如果指定了')%>symbol，<%=LANG('则只会推送此')%>market<%=LANG('的仓位变动给客户')%>。

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Trade.orderChange",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">        "action"</span><span class="s2">:1,</span>
<span class="nt">        "amount"</span><span class="s2">:"1",</span>
<span class="nt">        "availableAmount"</span><span class="s2">:"1",</span>
<span class="nt">        "availableValue"</span><span class="s2">:"2022.1",</span>
<span class="nt">        "avgPrice"</span><span class="s2">:"0",</span>
<span class="nt">        "canCancel"</span><span class="s2">:true,</span>
<span class="nt">        "cancelStatus"</span><span class="s2">:20,</span>
<span class="nt">        "createTime"</span><span class="s2">:"1617955686930",</span>
<span class="nt">        "entrustType"</span><span class="s2">:1,</span>
<span class="nt">        "id"</span><span class="s2">:"6786198009513254912",</span>
<span class="nt">        "leverage"</span><span class="s2">:13,</span>
<span class="nt">        "margin"</span><span class="s2">:"155.560153",</span>
<span class="nt">        "marketId"</span><span class="s2">:"101",</span>
<span class="nt">        "orderCode"</span><span class="s2">:"6786198009530034176",</span>
<span class="nt">        "price"</span><span class="s2">:"2022.1",</span>
<span class="nt">        "showStatus"</span><span class="s2">:1,</span>
<span class="nt">        "side"</span><span class="s2">:1,</span>
<span class="nt">        "sourceType"</span><span class="s2">:5,</span>
<span class="nt">        "status"</span><span class="s2">:12,</span>
<span class="nt">        "tradeAmount"</span><span class="s2">:"0",</span>
<span class="nt">        "tradeValue"</span><span class="s2">:"0",</span>
<span class="nt">        "type"</span><span class="s2">:1,</span>
<span class="nt">        "userId"</span><span class="s2">:"6755772669834045440",</span>
<span class="nt">        "value"</span><span class="s2">:"2022.1"</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>channel </td><td> <%=LANG('是')%>   </td><td> String </td><td> trade.orderChange                          </td></tr>
                    <tr><td>symbol  </td><td> <%=LANG('是')%>   </td><td> String </td><td> <%=LANG('合约')%>，<%=LANG('即市场交易对唯一标识符')%>，<%=LANG('如')%>：BTC_USDT </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>id</td><td><%=LANG('订单')%>id</td></tr>
                    <tr><td>orderCode</td><td><%=LANG('自定义订单')%>ID</td></tr>
                    <tr><td>marketId</td><td><%=LANG('市场')%>id</td></tr>
                    <tr><td>price</td><td><%=LANG('委托价格')%></td></tr>
                    <tr><td>amount</td><td><%=LANG('委托数量')%></td></tr>
                    <tr><td>value</td><td><%=LANG('委托价值')%>，<%=LANG('即委托价格')%> * <%=LANG('委托数量')%></td></tr>
                    <tr><td>availableAmount</td><td><%=LANG('可用委托数量')%></td></tr>
                    <tr><td>availableValue</td><td><%=LANG('可用委托价值')%></td></tr>
                    <tr><td>tradeAmount</td><td><%=LANG('成交完成量')%>, <%=LANG('每次成交都会增加')%></td></tr>
                    <tr><td>tradeValue</td><td><%=LANG('成交完成价值')%>, <%=LANG('每次成交都会增加')%></td></tr>
                    <tr><td>entrustType</td><td><%=LANG('委托类型')%>：1<%=LANG('限价委托')%>，2<%=LANG('强平委托')%>，3<%=LANG('限价止盈')%>，4<%=LANG('限价止损')%></td></tr>
                    <tr><td>side</td><td><%=LANG('方向')%>：1<%=LANG('开多')%>（<%=LANG('买入')%>），2<%=LANG('开空')%>（<%=LANG('卖出')%>），3<%=LANG('平多')%>（<%=LANG('卖出')%>），4<%=LANG('平空')%>（<%=LANG('买入')%>）</td></tr>
                    <tr><td>leverage</td><td><%=LANG('杠杠倍数')%></td></tr>
                    <tr><td>avgPrice</td><td><%=LANG('成交均价')%></td></tr>
                    <tr><td>canCancel</td><td><%=LANG('能否取消')%></td></tr>
                    <tr><td>createTime</td><td><%=LANG('下单时间')%>，<%=LANG('时间戳')%></td></tr>
                    <tr><td>margin</td><td><%=LANG('保证金')%></td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="gftcabdncrnabxn"><%=LANG('下单')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Trade.order",
  "symbol":"BTC_USDT",
  "price":"65536",
  "amount":1,
  "actionType":1,
  "entrustType":1,
  "side":1
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">  "channel"</span><span class="s2">:"Trade.order",</span>
<span class="nt">  "data"</span><span class="s2">:"6748130702333780000"</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>channel     </td><td> <%=LANG('是')%>   </td><td> String  </td><td> trade.order                                                  </td></tr>
                    <tr><td>symbol      </td><td> <%=LANG('是')%>   </td><td> String  </td><td> <%=LANG('合约')%>，<%=LANG('即市场交易对唯一标识符')%>，<%=LANG('如')%>：BTC_USDT                   </td></tr>
                    <tr><td>price       </td><td> <%=LANG('是')%>   </td><td> Decimal </td><td> <%=LANG('价格')%>                                                         </td></tr>
                    <tr><td>amount      </td><td> <%=LANG('是')%>   </td><td> Decimal </td><td> <%=LANG('数量')%>                                                         </td></tr>
                    <tr><td>actionType  </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> <%=LANG('委托动作')%>: 1 <%=LANG('限价')%>, 2 <%=LANG('市价')%>, 3 IOC, 4 <%=LANG('只做')%> maker, 5 FOK         </td></tr>
                    <tr><td>entrustType </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> <%=LANG('委托类型')%>：1<%=LANG('限价委托')%>，2<%=LANG('强平委托')%>，3<%=LANG('限价止盈')%>，4<%=LANG('限价止损')%>         </td></tr>
                    <tr><td>side        </td><td> <%=LANG('是')%>   </td><td> Integer </td><td> <%=LANG('方向')%>：1<%=LANG('开多')%>（<%=LANG('买入')%>），2<%=LANG('开空')%>（<%=LANG('卖出')%>），3<%=LANG('平多')%>（<%=LANG('卖出')%>），4<%=LANG('平空')%>（<%=LANG('买入')%>） </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>orderId</td><td><%=LANG('订单')%>ID</td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="apnhzcspwdmfzrk"><%=LANG('查询订单明细')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Trade.getOrder",
  "symbol":"BTC_USDT",
  "orderId":6753263247702368256
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Trade.getOrder",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">        "leverage"</span><span class="s2">:10,</span>
<span class="nt">        "avgPrice"</span><span class="s2">:"0",</span>
<span class="nt">        "cancelStatus"</span><span class="s2">:20,</span>
<span class="nt">        "type"</span><span class="s2">:1,</span>
<span class="nt">        "marketId"</span><span class="s2">:"101",</span>
<span class="nt">        "modifyTime"</span><span class="s2">:"1617886532837",</span>
<span class="nt">        "availableAmount"</span><span class="s2">:"1",</span>
<span class="nt">        "price"</span><span class="s2">:"2022.1",</span>
<span class="nt">        "action"</span><span class="s2">:1,</span>
<span class="nt">        "id"</span><span class="s2">:"6785907956199202816",</span>
<span class="nt">        "value"</span><span class="s2">:"2022.1",</span>
<span class="nt">        "amount"</span><span class="s2">:"1",</span>
<span class="nt">        "margin"</span><span class="s2">:"202.21",</span>
<span class="nt">        "side"</span><span class="s2">:1,</span>
<span class="nt">        "availableValue"</span><span class="s2">:"2022.1",</span>
<span class="nt">        "tradeValue"</span><span class="s2">:"0",</span>
<span class="nt">        "showStatus"</span><span class="s2">:1,</span>
<span class="nt">        "userId"</span><span class="s2">:"6755772669834045440",</span>
<span class="nt">        "tradeAmount"</span><span class="s2">:"0",</span>
<span class="nt">        "createTime"</span><span class="s2">:"1617886532831",</span>
<span class="nt">        "sourceType"</span><span class="s2">:5,</span>
<span class="nt">        "orderCode"</span><span class="s2">:"6785907956220176394",</span>
<span class="nt">        "entrustType"</span><span class="s2">:1,</span>
<span class="nt">        "canCancel"</span><span class="s2">:true,</span>
<span class="nt">        "status"</span><span class="s2">:12</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>channel     </td><td> <%=LANG('是')%>   </td><td> String </td><td> trade.getOrder                             </td></tr>
                    <tr><td>symbol        </td><td> <%=LANG('是')%>   </td><td> String </td><td> <%=LANG('合约')%>，<%=LANG('即市场交易对唯一标识符')%>，<%=LANG('如')%>：BTC_USDT </td></tr>
                    <tr><td>orderId       </td><td> <%=LANG('否')%>   </td><td> Long   </td><td> <%=LANG('订单')%>ID                                     </td></tr>
                    <tr><td>clientOrderId </td><td> <%=LANG('否')%>   </td><td> String </td><td> <%=LANG('自定义')%>id                                 </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="mblbmsmvhkedugy"><%=LANG('取消订单')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Trade.cancelOrder",
  "symbol":"BTC_USDT",
  "orderId":6753263256262942720
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Trade.cancelOrder",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">        "code"</span><span class="s2">:10000,</span>
<span class="nt">        "data"</span><span class="s2">:"6753263256262942720",</span>
<span class="nt">        "desc"</span><span class="s2">:"<%=LANG('操作成功')%>"</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>channel       </td><td> <%=LANG('是')%>   </td><td> String </td><td> trade.cancelOrder                          </td></tr>
                    <tr><td>symbol        </td><td> <%=LANG('是')%>   </td><td> String </td><td> <%=LANG('合约')%>，<%=LANG('即市场交易对唯一标识符')%>，<%=LANG('如')%>：BTC_USDT </td></tr>
                    <tr><td>orderId       </td><td> <%=LANG('否')%>   </td><td> Long   </td><td> <%=LANG('订单')%>ID                                     </td></tr>
                    <tr><td>clientOrderId </td><td> <%=LANG('否')%>   </td><td> String </td><td> <%=LANG('自定义')%>id                              </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="lpnzjpgpqfsjfiq"><%=LANG('批量取消委托')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Trade.batchCancelOrder",
  "symbol":"BTC_USDT",
  "orderIds":[1753262282144227328, 6753260246627524608]
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt"><%=LANG('成功')%></span>
<span class="nt">{</span>
<span class="nt">  "channel"</span><span class="s2">:"Trade.batchCancelOrder",</span>
<span class="nt">  "data"</span><span class="s2">:[],</span>
<span class="nt">}</span>
<span class="nt"><%=LANG('失败')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Trade.batchCancelOrder",</span>
<span class="nt">    "data"</span><span class="s2">:[</span>
<span class="nt">        {</span>
<span class="nt">            "code"</span><span class="s2">:12012,</span>
<span class="nt">            "data"</span><span class="s2">:"6786122846578941952",</span>
<span class="nt">            "desc"</span><span class="s2">:"<%=LANG('订单不存在')%>"</span>
<span class="nt">        },</span>
<span class="nt">        {</span>
<span class="nt">            "code"</span><span class="s2">:12012,</span>
<span class="nt">            "data"</span><span class="s2">:"6786122900735795200",</span>
<span class="nt">            "desc"</span><span class="s2">:"<%=LANG('订单不存在')%>"</span>
<span class="nt">        }</span>
<span class="nt">    ]</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>channel        </td><td> <%=LANG('是')%>   </td><td> String   </td><td> trade.batchCancelOrder                     </td></tr>
                    <tr><td>symbol         </td><td> <%=LANG('是')%>   </td><td> String   </td><td> <%=LANG('合约')%>，<%=LANG('即市场交易对唯一标识符')%>，<%=LANG('如')%>：BTC_USDT </td></tr>
                    <tr><td>orderIds       </td><td> <%=LANG('否')%>   </td><td> Long[]   </td><td> <%=LANG('订单')%>ID<%=LANG('列表')%>                                 </td></tr>
                    <tr><td>clientOrderIds </td><td> <%=LANG('否')%>   </td><td> String[] </td><td> <%=LANG('自定义')%>id<%=LANG('列表')%>                               </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="pmcskdtpdtrhkfe"><%=LANG('取消所有订单')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Trade.cancelAllOrders",
  "symbol":"BTC_USDT"
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Trade.cancelAllOrders",</span>
<span class="nt">	  "data"</span><span class="s2">:[],</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>channel </td><td> <%=LANG('是')%>   </td><td> String </td><td> trade.cancelAllOrders                      </td></tr>
                    <tr><td>symbol  </td><td> <%=LANG('是')%>   </td><td> String </td><td> <%=LANG('合约')%>，<%=LANG('即市场交易对唯一标识符')%>，<%=LANG('如')%>：BTC_USDT </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="fqsdmdnojcorbkm"><%=LANG('查询当前全部挂单')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Trade.getUndoneOrders",
  "symbol":"BTC_USDT"
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Trade.getUndoneOrders",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">        "pageSize"</span><span class="s2">:10,</span>
<span class="nt">        "list"</span><span class="s2">:[</span>
<span class="nt">            {</span>
<span class="nt">                "leverage"</span><span class="s2">:20,</span>
<span class="nt">                "amount"</span><span class="s2">:"1",</span>
<span class="nt">                "margin"</span><span class="s2">:"42.27596046",</span>
<span class="nt">                "side"</span><span class="s2">:2,</span>
<span class="nt">                "availableValue"</span><span class="s2">:"426",</span>
<span class="nt">                "avgPrice"</span><span class="s2">:"0",</span>
<span class="nt">                "cancelStatus"</span><span class="s2">:20,</span>
<span class="nt">                "tradeValue"</span><span class="s2">:"0",</span>
<span class="nt">                "showStatus"</span><span class="s2">:1,</span>
<span class="nt">                "type"</span><span class="s2">:-1,</span>
<span class="nt">                "userId"</span><span class="s2">:"1499",</span>
<span class="nt">                "marketId"</span><span class="s2">:"104",</span>
<span class="nt">                "tradeAmount"</span><span class="s2">:"0",</span>
<span class="nt">                "modifyTime"</span><span class="s2">:"1610103429879",</span>
<span class="nt">                "availableAmount"</span><span class="s2">:"1",</span>
<span class="nt">                "createTime"</span><span class="s2">:"1610103429870",</span>
<span class="nt">                "sourceType"</span><span class="s2">:1,</span>
<span class="nt">                "price"</span><span class="s2">:"426",</span>
<span class="nt">                "action"</span><span class="s2">:1,</span>
<span class="nt">                "entrustType"</span><span class="s2">:1,</span>
<span class="nt">                "id"</span><span class="s2">:"6753263256317468672",</span>
<span class="nt">                "value"</span><span class="s2">:"426",</span>
<span class="nt">                "canCancel"</span><span class="s2">:true,</span>
<span class="nt">                "status"</span><span class="s2">:12</span>
<span class="nt">            }</span>
<span class="nt">            ...</span>
<span class="nt">        ],</span>
<span class="nt">        "pageNum"</span><span class="s2">:1</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="nrwxwstofjdyanv"><%=LANG('查询所有订单')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Trade.getAllOrders",
  "symbol":"BTC_USDT"
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Trade.getAllOrders",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">        "pageSize"</span><span class="s2">:10,</span>
<span class="nt">        "list"</span><span class="s2">:[</span>
<span class="nt">            {</span>
<span class="nt">                "leverage"</span><span class="s2">:13,</span>
<span class="nt">                "avgPrice"</span><span class="s2">:"0",</span>
<span class="nt">                "cancelStatus"</span><span class="s2">:20,</span>
<span class="nt">                "type"</span><span class="s2">:1,</span>
<span class="nt">                "marketId"</span><span class="s2">:"101",</span>
<span class="nt">                "modifyTime"</span><span class="s2">:"1617955672776",</span>
<span class="nt">                "availableAmount"</span><span class="s2">:"1",</span>
<span class="nt">                "price"</span><span class="s2">:"2022.1",</span>
<span class="nt">                "action"</span><span class="s2">:1,</span>
<span class="nt">                "id"</span><span class="s2">:"6786197950126104576",</span>
<span class="nt">                "value"</span><span class="s2">:"2022.1",</span>
<span class="nt">                "amount"</span><span class="s2">:"1",</span>
<span class="nt">                "margin"</span><span class="s2">:"155.560153",</span>
<span class="nt">                "side"</span><span class="s2">:1,</span>
<span class="nt">                "availableValue"</span><span class="s2">:"2022.1",</span>
<span class="nt">                "tradeValue"</span><span class="s2">:"0",</span>
<span class="nt">                "showStatus"</span><span class="s2">:1,</span>
<span class="nt">                "userId"</span><span class="s2">:"6755772669834045440",</span>
<span class="nt">                "tradeAmount"</span><span class="s2">:"0",</span>
<span class="nt">                "createTime"</span><span class="s2">:"1617955672771",</span>
<span class="nt">                "sourceType"</span><span class="s2">:5,</span>
<span class="nt">                "orderCode"</span><span class="s2">:"6786197950142883840",</span>
<span class="nt">                "entrustType"</span><span class="s2">:1,</span>
<span class="nt">                "canCancel"</span><span class="s2">:true,</span>
<span class="nt">                "status"</span><span class="s2">:12</span>
<span class="nt">            }</span>
<span class="nt">            ...</span>
<span class="nt">        ],</span>
<span class="nt">        "pageNum"</span><span class="s2">:1</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>sCode</td><td><%=LANG('结果的')%>code，1<%=LANG('代表成功')%></td></tr>
                    <tr><td>sMsg</td><td><%=LANG('结果描述')%></td></tr>
                    <tr><td>orderId</td><td><%=LANG('订单')%>ID</td></tr>
                    <tr><td>clientOrderId</td><td><%=LANG('自定义订单')%>ID，<%=LANG('如空缺系统会自动赋')%></td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="ssicvfxsyqtbjqk"><%=LANG('查询成交明细')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Trade.getTrade<span class="kd">List</span>",
  "symbol":"BTC_USDT"，
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Trade.getTradeList",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">        "pageSize"</span><span class="s2">:10,</span>
<span class="nt">        "list"</span><span class="s2">:[</span>
<span class="nt">            {</span>
<span class="nt">                "feeAmount"</span><span class="s2">:"0.00402802",</span>
<span class="nt">                "amount"</span><span class="s2">:"0.01",</span>
<span class="nt">                "side"</span><span class="s2">:2,</span>
<span class="nt">                "createTime"</span><span class="s2">:"1617862083588",</span>
<span class="nt">                "orderId"</span><span class="s2">:"6785805407710355456",</span>
<span class="nt">                "price"</span><span class="s2">:"2014.01",</span>
<span class="nt">                "feeCurrency"</span><span class="s2">:"USDT",</span>
<span class="nt">                "maker"</span><span class="s2">:true,</span>
<span class="nt">                "relizedPnl"</span><span class="s2">:"0",</span>
<span class="nt">                "userId"</span><span class="s2">:"6755772669834045440"</span>
<span class="nt">            }</span>
<span class="nt">            ...</span>
<span class="nt">        ],</span>
<span class="nt">        "pageNum"</span><span class="s2">:1</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('必选')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('说明')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>channel </td><td> <%=LANG('是')%>   </td><td> String </td><td> trade.getTradeList                         </td></tr>
                    <tr><td>symbol  </td><td> <%=LANG('是')%>   </td><td> String </td><td> <%=LANG('合约')%>，<%=LANG('即市场交易对唯一标识符')%>，<%=LANG('如')%>：BTC_USDT </td></tr>
                    <tr><td>orderId </td><td> <%=LANG('是')%>   </td><td> Long   </td><td> <%=LANG('订单')%>ID                                     </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>orderId</td><td><%=LANG('订单')%>id</td></tr>
                    <tr><td>price</td><td><%=LANG('成交价格')%></td></tr>
                    <tr><td>amount</td><td><%=LANG('成交数量')%></td></tr>
                    <tr><td>feeAmount</td><td><%=LANG('手续费')%></td></tr>
                    <tr><td>feeCurrency</td><td><%=LANG('手续费币种')%></td></tr>
                    <tr><td>relizedPnl</td><td><%=LANG('已实现盈亏')%></td></tr>
                    <tr><td>side</td><td><%=LANG('向')%>：1<%=LANG('开多')%>（<%=LANG('买入')%>），2<%=LANG('开空')%>（<%=LANG('卖出')%>），3<%=LANG('平多')%>（<%=LANG('卖出')%>），4<%=LANG('平空')%>（<%=LANG('买入')%>）</td></tr>
                    <tr><td>maker</td><td><%=LANG('是否')%>maker,<%=LANG('否则为')%>taker</td></tr>
                    <tr><td>createTime</td><td><%=LANG('成交时间戳')%></td></tr>

                    </tbody>
                </table>
            </div>


            <h2 id="ibjqefbpatsknsm"><%=LANG('查询历史成交记录')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Trade.tradeHistory",
  "symbol":"BTC_USDT"，
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Trade.tradeHistory",</span>
<span class="nt">    "data"</span><span class="s2">:{</span>
<span class="nt">        "pageSize"</span><span class="s2">:10,</span>
<span class="nt">        "list"</span><span class="s2">:[</span>
<span class="nt">            {</span>
<span class="nt">                "feeAmount"</span><span class="s2">:"0.00402802",</span>
<span class="nt">                "amount"</span><span class="s2">:"0.01",</span>
<span class="nt">                "side"</span><span class="s2">:2,</span>
<span class="nt">                "createTime"</span><span class="s2">:"1617862083588",</span>
<span class="nt">                "orderId"</span><span class="s2">:"6785805407710355456",</span>
<span class="nt">                "price"</span><span class="s2">:"2014.01",</span>
<span class="nt">                "feeCurrency"</span><span class="s2">:"USDT",</span>
<span class="nt">                "maker"</span><span class="s2">:true,</span>
<span class="nt">                "relizedPnl"</span><span class="s2">:"0",</span>
<span class="nt">                "userId"</span><span class="s2">:"6755772669834045440"</span>
<span class="nt">            }</span>
<span class="nt">            ...</span>
<span class="nt">        ],</span>
<span class="nt">        "pageNum"</span><span class="s2">:1</span>
<span class="nt">    }</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>


            <h2 id="lkbhbudoiuzrsfb"><%=LANG('批量下单')%></h2>
            <div class="row-rd">
                <!--<%=LANG('右边编码块')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('请求示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="request">REQUEST</button>
                            <button class="s-btn" data-res="java">JAVA</button>
                            <button class="s-btn" data-res="python">PYTHON</button>

                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="request" class="switch-item selected">
<pre class="highlight">
<code>
<span class="c1">// request demo</span>
{
  "action": "subscribe",
  "channel":"Trade.batchOrder",
  "orderDatas":"[{"symbol":"ETH_USDT","amount":1,"side":1,"price":"1100","action":1,"entrustType":1},{"symbol":"ETH_USDT","amount":1,"side":1,"price":"1000","action":1,"entrustType":1}]"，
}

</code>
</pre>

                        </div>
                        <div data-body="java" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// java demo</span>

</code>
</pre>

                        </div>
                        <div data-body="python" class="switch-item">
<pre class="highlight">
<code>
<span class="c1">// python demo</span>

</code>
</pre>

                        </div>

                    </div>
                </div>
                <!--<%=LANG('返回数据')%>-->
                <div class="switch-wrapper">
                    <div class="switch-tab">
                        <p class="switch-title"><%=LANG('响应示例')%></p>
                        <div class="switch-btns">
                            <button class="s-btn selected" data-res="json">JSON</button>
                        </div>
                    </div>
                    <div class="switch-body">
                        <div data-body="json" class="switch-item selected">
<pre class="highlight">
<code>
<span class="nt">// <%=LANG('返回结果')%></span>
<span class="nt">{</span>
<span class="nt">    "channel"</span><span class="s2">:"Trade.batchOrder",</span>
<span class="nt">    "data"</span><span class="s2">: [</span>
<span class="nt">        {</span>
<span class="nt">            "sCode"</span><span class="s2">: 1, </span>
<span class="nt">            "orderId"</span><span class="s2">: "6754725173120933888", </span>
<span class="nt">            "clientOrderId"</span><span class="s2">: "6754725172671948800", </span>
<span class="nt">            "sMsg"</span><span class="s2">: "success"</span>
<span class="nt">        }, </span>
<span class="nt">        {</span>
<span class="nt">            "sCode"</span><span class="s2">: 1, </span>
<span class="nt">            "orderId"</span><span class="s2">: "6754725173074796544", </span>
<span class="nt">            "clientOrderId"</span><span class="s2">: "6754725172676143104", </span>
<span class="nt">            "sMsg"</span><span class="s2">: "success"</span>
<span class="nt">        }</span>
<span class="nt">    ]</span>
<span class="nt">}</span>

</code>
</pre>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row-ld">

                <table>
                    <thead>
                    <tr><th><%=LANG('参数名称')%> </th><th> <%=LANG('类型')%> </th><th> <%=LANG('是否必须')%> </th><th> <%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>channel    </td><td> <%=LANG('是')%>     </td><td> String   </td><td> Trade.batchOrder                           </td></tr>
                    <tr><td>orderDatas </td><td> String </td><td> <%=LANG('是')%>       </td><td> <%=LANG('订单列表')%>，JSON<%=LANG('类型的字符串')%>，<%=LANG('参数同下单接口')%> </td></tr>

                    </tbody>
                </table>
                <p></p><aside class="notice"><%=LANG('请求参数说明')%>(<%=LANG('签名参数按照')%>ASCII<%=LANG('值排序')%>,Sign<%=LANG('和')%>ReqTime<%=LANG('不用加入待签名字符串')%>)</aside>

                <table>
                    <thead>
                    <tr><th><%=LANG('返回值')%></th><th><%=LANG('描述')%></th></tr>
                    </thead>
                    <tbody>
                    <tr><td>sCode</td><td><%=LANG('结果的')%>code，1<%=LANG('代表成功')%></td></tr>
                    <tr><td>sMsg</td><td><%=LANG('结果描述')%></td></tr>
                    <tr><td>orderId</td><td><%=LANG('订单')%>ID</td></tr>
                    <tr><td>clientOrderId</td><td><%=LANG('自定义订单')%>ID，<%=LANG('如空缺系统会自动赋')%></td></tr>

                    </tbody>
                </table>
            </div>






            <h1 id="<%=LANG('错误代码')%>"><%=LANG('错误代码')%></h1>



        </div>
        <div class="dark-box">
            <div class="lang-selector">
                <!--<a href="#" data-language-name="curl">CURL</a> -->

            </div>
        </div>
    </div><!-- content_body -->
</div><!-- page-wrapper -->
</body>

<script>
    window.onload = function(){
        $('.switch-wrapper').each(function(){
            var $this = $(this);
            $this.on('click','.s-btn',function(){
                var _this = $(this);
                _this.addClass('selected').siblings().removeClass('selected');
                $this.find('[data-body="' + _this.data('res') + '"]').addClass('selected').siblings().removeClass('selected');
            })
        })
    }
</script>
</html>